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

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.