jpmens / homie-ota

OTA "server" in Python for Homie
127 stars 50 forks source link

Swapped order of $implementation/ota/firmware and $ota messages for 2.0 #38

Closed ghost closed 7 years ago

ghost commented 7 years ago

Without this PR, homie-ota publishes the firmware blob first, followed by the new firmware version on $ota. However, the latest homie-esp8266 wants the opposite order:

Without this PR, the latest homie-esp8266 rejects firmware updates from homie-ota because it "thinks" the firmware blob is unsolicited. (It works if someone clicks Go! twice).

This PR reverses the order of publishing these messages to match the latest homie-esp8266 sequence, and also clears the retain flag since retention is not needed anymore with the new sequence.

jpmens commented 7 years ago

Thanks, merged.