diff --git a/platform.txt b/platform.txt index 3ef891f0cc5acb23e4a4f9f1567d2be7fcbb2e18..944019636e0461a513bd42d4d885b751448b8416 100644 --- a/platform.txt +++ b/platform.txt @@ -250,9 +250,6 @@ tools.esptool_py.upload.network_pattern={network_cmd} -i "{serial.port}" -p "{ne ## Upload Sketch Through OTA (Arduino IDE 2.x) ## ------------------------------------------- tools.esp_ota.upload.protocol=network -## Following command does not work currently, because port properties are lost and auth dialog does not permit empty fields -#tools.esp_ota.upload.field.password=Password -#tools.esp_ota.upload.field.password.secret=true -#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" -## So we do basic default OTA on port 3232 and no auth -tools.esp_ota.upload.pattern={cmd} -i "{upload.port.address}" -f "{build.path}/{build.project_name}.bin" +tools.esp_ota.upload.field.password=Password +tools.esp_ota.upload.field.password.secret=true +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"