cesanta / mongoose-os

Mongoose OS - an IoT Firmware Development Framework. Supported microcontrollers: ESP32, ESP8266, CC3220, CC3200, STM32F4, STM32L4, STM32F7. Amazon AWS IoT, Microsoft Azure, Google IoT Core integrated. Code in C or JavaScript.
https://mongoose-os.com
Other
2.51k stars 429 forks source link

OTA rpc reverts #426

Closed AlessiaPileri closed 6 years ago

AlessiaPileri commented 6 years ago

I'm using mongoose-os on ESP32 platform and I have an issue trying to perform OTA update via RPC http (I'm using licensed version of the lib). After the rpc command, OTA update seems to be ok,as I can see in the mos console: updater_finish Finished: 1 Update applied, finalizing But after few minutes I see this message in mos console: OTA failure: reverting and firmware version is reverted.

Full log downloaded from mos console: log_mos.txt

cpq commented 6 years ago

Did you OTA.Commit the new firmware after boot ?

AlessiaPileri commented 6 years ago

Should I send OTA.Commit command explicitly? In past versions of the libs, send OTA.Update was enough to update the firmware.

cpq commented 6 years ago

Please read https://mongoose-os.com/docs/book/ota.html and https://github.com/mongoose-os-libs/rpc-service-ota#otaupdate

cpq commented 6 years ago

Closing this - feel free to reopen if required.