JAndrassy / ArduinoOTA

Arduino library to upload sketch over network to Arduino board with WiFi or Ethernet libraries
GNU Lesser General Public License v2.1
435 stars 89 forks source link

OTA with Ethernet from a URL #230

Closed IgnacioSJ closed 9 months ago

IgnacioSJ commented 9 months ago

Hi! I'm trying to do an OTA update from a URL (e.g. an https://raw.githubusercontent.com/... containing a .bin file) with Ethernet connection. I have seen that this library can do OTA updates with Ethernet but there is no example (or I have not found it) of an update out from a local network. Could be possible to do this with ArduinoOTA library? Thank you!

JAndrassy commented 9 months ago

https://github.com/JAndrassy/ArduinoOTA/blob/master/examples/Advanced/OTASketchDownload/OTASketchDownload.ino

IgnacioSJ commented 9 months ago

Hi @JAndrassy! If I'm using an URL from Internet, what parameters do I have to write on SERVER and SERVER_PORT?

JAndrassy commented 9 months ago

Ethernet library doesn't support https, but you can try it with SSLClient library. https port is 443