OTA preflash validation



  • I think it's a good idea to implement OTA "pre flash" validation. There should a possibility to define some HARDWARE_ID into sketch, modify OTA message to tell node "these new sketch is for XYZ HARDWARE_ID" and add some predefined function (as validate_OTA()) to block flashing if code is NOT for these hardware.
    Accidentally I've flashed node mounted in a field and very well water protected with a wrong HEX. Dissembling module in "the middle of field", cleaning contacts from protecting grease, flashing it and protecting again was VERY painful......


  • Mod

    Testing is always good practice anyway ๐Ÿ˜„



  • It WAS tested but "in the middle of night" I've chosen WRONG firmware..... ๐Ÿ˜ž


  • Mod

    Sorry to hear that, but I understand... I've been there too


Log in to reply
 

Suggested Topics

  • 7
  • 4
  • 3
  • 1
  • 17
  • 3
  • 6
  • 3

179
Online

10.2k
Users

10.6k
Topics

109.2k
Posts