Hello everyone,
I’m working on an ESP32 project with PlatformIO and I’m encountering an issue with OTA upload when I add a password.
Context:
-OTA upload works perfectly** without a password (authentication disabled).
-OTA upload fails** when I set a password, with the following error in the logs:
22:47:29 [DEBUG]: Options: {‘esp_ip’: ‘BaseEsp32.local’, ‘host_ip’: ‘0.0.0.0’, ‘esp_port’: 3232, ‘host_port’: 24600, ‘auth’: ‘’, ‘image’: ‘.pio\build\esp32dev\firmware.bin’, ‘spiffs’: False, ‘debug’: True, ‘progress’: True, ‘timeout’: 10}
22:47:29 [INFO]: Starting on 0.0.0.0:24600
22:47:29 [INFO]: Upload size: 814000
Sending invitation to BaseEsp32.local
Authenticating…FAIL
22:47:34 [ERROR]: Authentication Failed
*** [upload] Error 1
– My platformio.ini
configuration:
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
upload_port = BaseEsp32.local
monitor_port = BaseEsp32.local
monitor_speed = 115200
upload_flags =
–port=3232
–auth=onverra
lib_deps =
jandrassy/TelnetStream@^1.3.0
– What I’ve tried:
- I added
ArduinoOTA.setPassword("onverra")
in my ESP32 code. - When I add
--auth=onverra
in theupload_flags
, authentication fails every time.
I can’t figure out why the authentication is failing, as the password seems correctly set up. Has anyone else encountered this issue or have any suggestions on what might be wrong?
Thanks in advance for your help!