What's the best way to perform OTA Updates?

ashleyvanlaer
Posts: 2
Joined: Sun Apr 21, 2019 10:09 am

What's the best way to perform OTA Updates?

Postby ashleyvanlaer » Tue Apr 23, 2019 4:53 pm

I'm developing an iot project, to bring the product to market. I need to make OTA updates available. What's the best approach for this? I have found an OTA Library. But it doesn't explain how to manage it in a safe way from an external update server.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: What's the best way to perform OTA Updates?

Postby ESP_Angus » Wed Apr 24, 2019 7:37 am

ESP-IDF comes with OTA support and there are some OTA examples included:
https://github.com/espressif/esp-idf/tr ... system/ota

ESP-JUMPSTART also includes some steps for OTA:
https://docs.espressif.com/projects/esp ... index.html

Regarding server-side configuration, a plain HTTP or HTTPS (recommended) server is all you need to distribute updates. However you may want to authenticate your devices so that unauthorized devices can't download updates. The best way to do this is in conjunction with whatever server-side application logic you have (for example, have the server-side application push a one-time-only HTTPS download URL to the device). The next best way is to use some kind of HTTPS authentication (password or TLS client authentication) on the device, or generate a custom device-specific URL and parse this on the server somehow.

Who is online

Users browsing this forum: No registered users and 121 guests