Hosting a new file on the https server using simple_ota_example

benedito821
Posts: 15
Joined: Fri Mar 19, 2021 9:58 pm

Hosting a new file on the https server using simple_ota_example

Postby benedito821 » Tue Mar 21, 2023 7:44 am

I have successfully runned the simple_ota_example , hosting the blink.bin example file on the server. But how can I host a new file? Do I need to follow all the steps from scratch(generate certs,set the URL on menuconfig,rebuild and reflash,restart the server)?

I've tried to only run the server inside the folder, in which the build artifacts of the new project are, after copying to this same folder the certs that I generated while hosting the blink.bin example and reseting the board, but without success.

User avatar
mbratch
Posts: 303
Joined: Fri Jun 11, 2021 1:51 pm

Re: Hosting a new file on the https server using simple_ota_example

Postby mbratch » Thu Mar 23, 2023 6:03 pm

You don't have to start from scratch. But I assume that the simple OTA example has the URL of the binary as well as the binary file name hard-coded in the code. So to access a different file and/or a different URL location for the file, that's a code change and rebuild. As far as the cert goes, as long as you rebuild with the same cert information that aligns with URL, you should be fine.

Who is online

Users browsing this forum: Google [Bot] and 86 guests