Open AQIBRIAZ opened 4 years ago
@AQIBRIAZ , if you are looking for OTA over MQTT, then we do not have any example for that. Normally, we prefer hosting the firmware image somewhere (say AWS S3) and then sending the URL to the device over MQTT. If that approach is fine, the relevant documentation and example can be found in ESP Jumpstart (https://docs.espressif.com/projects/esp-jumpstart/en/latest/firmwareupgrade.html)
@shahpiyushv Thanks for quick response. Can you guide me how to do the OTA securely with AWS S3 as you mentioned? I have done the OTA using AWS S3 but we need to make the OTA link public to do OTA. Can you guide me the steps need to be done if we go with MQTT?
Thanks
@AQIBRIAZ , there are two possible options
Hi @shahpiyushv i use your suggestion of use OTA using AWS S3 and keep bucket private and send pre-signed URL to the device over MQTT, but i receive a error MQTT_RX_BUFFER_TOO_SHORT_ERROR when the subscribe to the message with the pre-signed URL. the message send over MQTT is something like that:
where can i change this buffer size? or how can i solve that problem?
Thanks..
Thanks, I solve the problem changing the value of MQTT RX Buffer Length to 1024 in menuconfig -> Component Config -> Amazon Web Services IoT Platform.
Hi there,
Thank you for the Library. Can you provide example for the OTA with AWS IOT core?
Regards