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.
Hosting a new file on the https server using simple_ota_example
-
- Posts: 15
- Joined: Fri Mar 19, 2021 9:58 pm
Re: Hosting a new file on the https server using simple_ota_example
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: No registered users and 141 guests