arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.33k stars 394 forks source link

over the air programming for ESP32: espota needs --auth= argument to be quoted #2483

Closed jamesalawrence closed 3 months ago

jamesalawrence commented 3 months ago

It is possible to perform an OTA update successfully to an ESP32 device from the command line using a command like python3 espota.py -r -i -p 3232 --auth="This is a valid auth phrase with spaces" -f project.ino.bin

However if you try to enter "This is a valid auth phrase with spaces", either with or without the quotes into the dialogue box for the OTA password within the Arduino IDE then it fails complaining that "is a valid auth phrase with spaces" are not valid arguments for espota.

Please quote the password that is collected within the dialogue box so that spaces do not cause failure.

per1234 commented 3 months ago

Hi @jamesalawrence. Thanks for your report.

The problem is caused by insufficient quoting in the command template defined in the platform.txt configuration file of the "esp32" boards platform, not by a problem in the Arduino IDE codebase. So I will close this issue as off topic for this repository.

I have also submitted a pull request to fix the bug in the "esp32" boards platform configuration so the resolution is in progress even though it isn't appropriate to track it via this issue tracker:

https://github.com/espressif/arduino-esp32/pull/10126

jamesalawrence commented 3 months ago

Thanks @per1234 for your very speedy response.