Page 1 of 1

Hosting a new file on the https server using simple_ota_example

Posted: Tue Mar 21, 2023 7:44 am
by benedito821
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.

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

Posted: Thu Mar 23, 2023 6:03 pm
by mbratch
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.