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

"Payload size wrong" with enc28j60 #149

Closed limecat-ss closed 2 years ago

limecat-ss commented 2 years ago

Hello,

Is the ArduinoOTA library compatible with enc28j60? I get "Payload size wrong" on the serial port when I use:

Serial.print("OTA upload response: "); Serial.println(status);

at WiFiOTA.cpp

When I use W5500 everything works fine.

obs: I use enc28j60 with esp8266 (Wemos D1 MINI)

Thanks

JAndrassy commented 2 years ago

with EthernetENC or with the new lwIP_enc28j60? with lwIP_enc28j60 use the esp8266 bundled ArduinoOTA library.

limecat-ss commented 2 years ago

Hi,

My problem was in the construction of my platform.local . The example in the my_boards/avr folder worked for me.

My platform.local.txt looked like this

tools.arduinoOTA.cmd={runtime.hardware.path}/tools/arduinoOTA
tools.arduinoOTA.program.params.verbose=
tools.arduinoOTA.program.params.quiet=
tools.arduinoOTA.program.pattern="{cmd}" -address {ip} -port 65280 -t 30 -username arduino -password password -sketch "{build.path}/{build.project_name}.bin" -upload /sketch -b

Now everything is working. Thanks !