Automatic OTA Commit

Hello All,

Reference from this Document : Mongoose OS Documentation

I did OTA by mDash. In my testing and understanding. I have to OTA.commit everytimes after OTA success. If I reset before OTA.commit, The new firmware will rollback.Right?

1.How to auto OTA.commit or force commit after OTA process success because I have a lot of device?
2.commit_timeout unit is seconds.Right? And how could I increase it.

Thank you for reply.And sorry for my english.

I’m afraid you can’t.
Try this instead of uploading the new firmware to mdash. It commits immediately after reboot.

curl -F commit_timeout=0 -F file=@PATH/TO/

Slightly modified command from here.

1 Like

Thank you for reply.It’s work :smiley: