Skip to content

Commit d1c10d9

Browse files
committed
Fix ArduinoOTA uploads in Arduino IDE 2.0
1 parent da66b2b commit d1c10d9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Diff for: platform.txt

+3-6
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,6 @@ tools.esptool_py.upload.network_pattern={network_cmd} -i "{serial.port}" -p "{ne
250250
## Upload Sketch Through OTA (Arduino IDE 2.x)
251251
## -------------------------------------------
252252
tools.esp_ota.upload.protocol=network
253-
## Following command does not work currently, because port properties are lost and auth dialog does not permit empty fields
254-
#tools.esp_ota.upload.field.password=Password
255-
#tools.esp_ota.upload.field.password.secret=true
256-
#tools.esp_ota.upload.pattern={cmd} -i "{upload.port.address}" -p "{upload.port.properties.port}" "--auth={upload.field.password}" -f "{build.path}/{build.project_name}.bin"
257-
## So we do basic default OTA on port 3232 and no auth
258-
tools.esp_ota.upload.pattern={cmd} -i "{upload.port.address}" -f "{build.path}/{build.project_name}.bin"
253+
tools.esp_ota.upload.field.password=Password
254+
tools.esp_ota.upload.field.password.secret=true
255+
tools.esp_ota.upload.pattern={cmd} -i {upload.port.address} -p {upload.port.properties.port} --auth={upload.field.password} -f "{build.path}/{build.project_name}.bin"

0 commit comments

Comments
 (0)