Module Integration Guides
...
ESP-IDF
Integrate Over the air updates
2 min
ota update has become a critical requirement for devices being deployed remotely this guide covers everything you need to know about over the air firmware upgrades with bytebeam esp idf sdk enabling ota updates ota updates can be integrated into application by adding action handler for ota updates / below function call adds action handler for "update firmware" action / / handle ota is the pointer to action handler / bytebeam add action handler(\&bytebeam client, handle ota, "update firmware"); / use the bytebeam remove action handler api to remove the handler for the update firmware action at any point of time in the code , also you can mantain the add update firmware action handler and remove update firmware action handler flow as per you application needs / // bytebeam remove action handler(\&bytebeam client, "update firmware"); have a look at https //github com/bytebeamio/esp bytebeam sdk/tree/main/examples/basic ota example app for reference follow the below steps to trigger ota updates upload a bin file and create a new firmware version on bytebeam as per the instructions mentioned in the docid\ rspbeteys4f9tw3fepvfa guide once, new firmware version is created, trigger ota update as per the instructions mentioned in the docid\ adgo fn2yj0q5lptibrqo guide progress of the firmware update can be monitored on bytebeam platform using action status ota rollback you can create a checkpoint in your app to either mark the newly updated firmware image as active or rollback to previous firmware version have a look at https //github com/bytebeamio/bytebeam esp idf sdk/tree/main/examples/basic ota rollback example app for reference note for production cases, please tune the checkpoint behavior as per end application requirement


