Replies: 2 comments
-
|
I have seen 2 different levels of OTA updates.
Not clear which you are after. For 1: For 2. You'll need to build your own firmwares on an OTA capable board
Also search the awesome MicroPython list for OTA |
Beta Was this translation helpful? Give feedback.
-
|
Note that on a typical WiFi with DHCP the IP might change over time. This lack of stability is one of the reasons to use a public server with a fully-qualified-domain-name like github. You can also set up something like mDNS. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All
I'm trying to set up OTA updates for my ESP32. It's eventually going to be located where it is not easily accessible, and it's a barebones unit with no usb plug, so to update the program on it I'm using OTA updating. I've got this to work (with the help of Kevin Mcaleer, thanks!) reading the updated program file from github, but now I'm trying to get it to read a file from my PC (as there doesn't seem much point for the round trip to github and back again).
I've set up a server using python.server (
python3 -m http.server 8080), which works fine in my browser, and curl also works. But I cannot get it to work from within a micropython program. It always returns an error,OSError: [Errno 104] ECONNRESET. This error is issued when the connection is unexpectedly closed by the server, but there doesn't seem to be much information beyond that.This is the Micropython code. I've tried a few variations but they all return the same error.
import requests x = requests.get('http://localhost:8080/esp-now-rx/main.py') print(x)I'm stuck here. I don't know enough about http or servers to understand where the problem would be occurring.
All advice gratefully received.
:-\
Beta Was this translation helpful? Give feedback.
All reactions