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

Arduino IDE 2.0 Error with fake progrmmer method #161

Closed AcThPaU closed 2 years ago

AcThPaU commented 2 years ago

Property 'program.tool.' is undefined

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

arduinoOTA104.name=Arduino OTA arduinoOTA104.program.tool = arduinoOTA arduinoOTA104.ip=192.168.1.236

JAndrassy commented 2 years ago

try the GitHub version. there is a fix but I didn't create a release yet

AcThPaU commented 2 years ago

tried, still the same error

JAndrassy commented 2 years ago

did you copy the new platform.local.txt?

AcThPaU commented 2 years ago

you did not update samd for 3 years.

JAndrassy commented 2 years ago

sorry but how should I know you use SAMD? AVR is updated. but not the fake programmer I see now. I think programmers didn't work in IDE 2 when I added support for it in avc/platform.local.txt

JAndrassy commented 2 years ago

it is a bug in IDE 2. upload with fake programmer works as it is for custom boards definitions in hardware folder (my_boards), but it ends with error "Property 'program.tool.serial' is undefined" for boards from installed packages. program.tool.serial is not used by fake programmer.

JAndrassy commented 2 years ago

so the solution is to add

arduinoOTA104.program.default=arduinoOTA

to definition in programmers.txt for IDE 2 and CLI