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......
-
Testing is always good practice anyway
-
It WAS tested but "in the middle of night" I've chosen WRONG firmware.....
-
Sorry to hear that, but I understand... I've been there too
1 out of 4
Suggested Topics
-
Controlling Blinds.com RF Dooya Motors with Arduino and Vera
My Project • 24 Mar 2014, 13:27 • petewill 12 Aug 2023, 16:39 -
Water leak sensor
Feature Requests • 12 May 2019, 14:23 • golferjack 5 May 2022, 16:51 -
wireless gateway
Feature Requests • 8 Jun 2023, 14:05 • Thomaswortman 8 Jun 2023, 14:05 -
debug serial gateway (homeassistant raspberry py 4)
Feature Requests • 2 May 2023, 09:01 • Branther 8 Jun 2023, 12:38 -
ota-configuration
Feature Requests • 8 Mar 2023, 09:28 • pbw 8 Mar 2023, 09:28 -
ESP32 Wired (no WiFi)
Feature Requests • 15 Nov 2024, 10:39 • Marcin 20 Nov 2024, 09:13