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:
Publish new firmware version to $ota
Publish firmware blob to $implementation/ota/firmware
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.
Without this PR,
homie-ota
publishes the firmware blob first, followed by the new firmware version on$ota
. However, the latesthomie-esp8266
wants the opposite order:$ota
$implementation/ota/firmware
Without this PR, the latest
homie-esp8266
rejects firmware updates fromhomie-ota
because it "thinks" the firmware blob is unsolicited. (It works if someone clicksGo!
twice).This PR reverses the order of publishing these messages to match the latest
homie-esp8266
sequence, and also clears theretain
flag since retention is not needed anymore with the new sequence.