OTA update multiple bin files, only one URL

asweeney
Posts: 4
Joined: Wed Dec 05, 2018 12:52 pm

OTA update multiple bin files, only one URL

Postby asweeney » Wed Dec 05, 2018 1:09 pm

Hello everyone,

First post here. I've been using ESP32 for a year now. I'm building a wifi enabled thermostat and heating control. I have a question about the OTA update sample files.

In the OTA README.md it says I can enter the URL in menuconfig under 'Example Configuration'. In my Example Configuration I see no such option. I have options for Wifi SSID, WiFi Password and two AWS IoT options only. I assume I can just enter the URL as a string instead of CONFIG_FIRMWARE_UPGRADE_URL in simple_ota_example.c ?

Also, running MAKE generates .bin, .elf and .map files for my app. How should I handle the OTA download for multiple files if I have just a single URL? I take it ESP32 will not do any unzipping :)

Many thanks to everyone!

asweeney
Posts: 4
Joined: Wed Dec 05, 2018 12:52 pm

Re: OTA update multiple bin files, only one URL

Postby asweeney » Tue Dec 11, 2018 5:22 pm

So the answer to my first question is that the main folder of the project needs to contain the file Kconfig.projbuild with this:

Code: Select all

menu "Example Configuration"

config WIFI_SSID
    string "WiFi SSID"
    default "myssid"
    help
	SSID (network name) for the example to connect to.

config WIFI_PASSWORD
    string "WiFi Password"
    default "mypassword"
    help
	WiFi password (WPA or WPA2) for the example to use.

config FIRMWARE_UPGRADE_URL
    string "firmware upgrade url endpoint"
    default "https://192.168.0.3:8070/hello-world.bin"
    help
        URL of server which hosts the firmware
        image.
endmenu

Sure would be mighty obliged if anyone could help me with my second question.

asweeney
Posts: 4
Joined: Wed Dec 05, 2018 12:52 pm

Re: OTA update multiple bin files, only one URL

Postby asweeney » Tue Dec 11, 2018 7:16 pm

The answer to the second question is that you only need to point your URL at your app's .bin file for your app to work. The other files generated by make are not required to be sent over the network for OTA update.

Who is online

Users browsing this forum: Gilbert and 129 guests