Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ESP32 OTA password problems (Read 117 times)
Acuario
Full Member
***
Offline


Posts: 238
Location: Spain
Joined: Aug 28th, 2015
ESP32 OTA password problems
Dec 14th, 2024 at 12:18pm
Print Post  
Hi,
I have a project that uses OTA to update an ESP32.
The password for OTA is set correctly in the Arduino OTA code.
The first time I tried to upload (without a board.txt file) it asked for a password, which I gave but typed incorrectly.
I then created a board.txt file with network.password=<correct password>
Whenever I try to do an upload it continues to use the old incorrect password (as seen in the verbose output)
If I change the password in board.txt it does not change when trying to upload.
I removed the board.txt and it still tries to upload with security.
I did a clean and rebuild, still the same.

It appears the password is being cached somewhere but I have no idea where.
If I remember it was historically always read from the board.txt file in the project.

Any ideas?
« Last Edit: Dec 14th, 2024 at 12:24pm by Acuario »  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 238
Location: Spain
Joined: Aug 28th, 2015
Re: ESP32 OTA password problems
Reply #1 - Dec 14th, 2024 at 1:00pm
Print Post  
More info:
It definitely appears it is cached. 
Closing VS and re opening it with the project and the password is correctly read from board.txt however making any changes in board.txt are not picked up until VS is closed and opened again.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2500
Joined: Feb 13th, 2019
Re: ESP32 OTA password problems
Reply #2 - Dec 16th, 2024 at 9:44am
Print Post  
Thanks for the report and noting the workaround of restarting VS.

We will look into this and update when a fix is available.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint