From 7dc8ca4e1ee75be9ae2753d9135399afe7d393d0 Mon Sep 17 00:00:00 2001 From: Me No Dev Date: Tue, 5 Apr 2022 03:33:42 +0300 Subject: [PATCH] Update OTA Command for IDE 2.0 --- platform.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/platform.txt b/platform.txt index bc096870..2f4507c3 100644 --- a/platform.txt +++ b/platform.txt @@ -246,4 +246,9 @@ 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 -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" +## 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"