homieiot / homie-esp8266

💡 ESP8266 framework for Homie, a lightweight MQTT convention for the IoT
http://homieiot.github.io/homie-esp8266
MIT License
1.36k stars 308 forks source link

Upgrade homie-esp8266 1.5.0 to 2.0 via OTA? #169

Closed jalmeroth closed 7 years ago

jalmeroth commented 7 years ago

Hi @marvinroger,

will homie-esp8266 v2 be in a way compatible so we can upgrade from v1.5.0 via OTA?

Thanks & regards, Jan

marvinroger commented 7 years ago

Well, no, the only problem being the format of the config.json file changed. Sorry!

jalmeroth commented 7 years ago

You mean missing key/values or what is going to break? Wouldn't it be possible to 'upgrade' them or at least populate with default values?

marvinroger commented 7 years ago

I talked a bit too fast. It will work (without guarantee) if:

But you would better try with a dev ESP8266 on which you flash homie-esp8266 v1.5 with a similar config. If you have a device in an hard to reach place, you don't want to crash it by sending an OTA payload that would not be backward compatible. In the worst scenario, the config won't be recognized and the device will reboot in config mode, though.

jalmeroth commented 7 years ago

Thank you very much, @marvinroger!

I successfully upgraded one of my devices from homie v1.5.0 to v2 via OTA. 👍