JAndrassy / ArduinoOTA

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

Can not update code by using example OTASketchDownload.ino #88

Closed dathtran32844 closed 3 years ago

dathtran32844 commented 3 years ago

Screenshot_20210526-215400~2 Hi jandrassy! This sever: 192.168.1.108 in your example, my board can not connect, it gave me: "Update status code: -2". Is this your local sever? If that true, can you help me to get the sever where i can up the bin flie. Or, Can you show me where I went wrong? Please, help me. Thank you so much!

JAndrassy commented 3 years ago

everybody knows 192./168.x.x is a local IP address. This range is not allowed on Internet. So it was the IP adrress of my computer when I tested the example and I had a http server running on my computer.

use this example if you have a http server where you put updated binary of your sketch