Hello,
When I try to update an ESP thru OTA the password is mandatory.
The update button is not enabled without password.
I never set password so I can not use V2
What is GUI V2? IDE 2.0?
If it's IDE 2.0 , I suggest that you move your topic to the dedicated IDE 2.0 section.
You're right !
Done,
Hi @chris34000. If you haven't set a password then just put any random characters into the "Password" field of the "Configure and Upload" dialog. The ESP32 board has the capability to have a password set and the Arduino IDE doesn't know whether or not you have one set in the sketch running on the board, so it has to ask you for one regardless.
Arduino IDE 1.x also asks for a password, except it doesn't require the field to be filled as Arduino IDE 2.x does.
Per
the mdns record is
= wlp58s0 IPv4 esp8266-f0e0c7 _arduino._tcp local
hostname = [esp8266-f0e0c7.local]
address = [192.168.1.113]
port = [8266]
txt = ["tcp_check=no" "ssh_upload=no" "board="ESP8266_WEMOS_D1MINILITE"" "auth_upload=no"]
auth_upload
is not handled by IDE 2 (CLI plugable discovery?)
No. In Arduino IDE 1.x, the password prompt was a hardcoded special treatment of "network ports". For Arduino CLI and Arduino IDE 2.x, this has been replaced by a generalized "user provided fields" system where a board definition can configure any number of arbitrary inputs for any upload recipe:
https://arduino.github.io/arduino-cli/latest/platform-specification/#user-provided-fields
For backwards compatibility, platforms that have the Arduino IDE 1.x style upload.network_pattern
upload recipe and reference a property named network.password
in that recipe are automatically configured for a user provided field named "Password":
Even though the properties such as auth_upload
provided by the discovery are available for use in the upload recipe, I don't see any way the user provided fields can be configured according to these properties.
Of course the upload tool can adjust its handling of data from the fields that are passed to it according to data from the port properties that are passed to it by the upload command recipe, but that isn't relevant to the subject of the user being prompted to fill the fields during the upload.
I tried with random characters but obviously I have an authentication error.
It seems beyond my skills to modify source and recompile.
I understand that it is "work as designed".
Either I will reconnect via USB my 15 or 20 ESPs running on different projects to add a password, or I will just stay on version 1.8.
Thank you anyway for your answers.
In order to gather more information that might help us to troubleshoot your problem, I'm going to ask you to post the full output from the upload when in verbose mode.
NOTE: These instructions will not solve the problem. They are only intended to possibly gather some more information about the problem, which might provide a clue that leads to a solution.
Please do this:
- Select File > Preferences from the Arduino IDE menus.
- Uncheck the checkbox next to Show verbose output during:
☑
compilation - Check the checkbox next to Show verbose output during: ☐ upload.
- Click the OK button.
- Attempt an upload, as you did before.
- Wait for the upload to fail.
- You will see a "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the COPY ERROR MESSAGES button on that notification.
- Open a forum reply here by clicking the Reply button.
- Click the
</>
icon on the post composer toolbar.
This will add the forum's code block markup (```
) to your reply to make sure the error messages are correctly formatted.
- Press Ctrl+V.
This will paste the error output from the upload into the code block. - Move the cursor outside of the code tags before you add any additional text to your reply.
- Click the Reply button to post the output.
I think the design can be improved. I have also noted the unpleasant user experience of having to add arbitrary text to this field and had it on my "to do" list as something to look into. Your post motivated me to move this a bit farther forward.
Juraj brought to my attention the fact that Arduino IDE 1.x provided a significantly better user experience in this situation by not presenting the password dialog at all when the board was configured for unauthenticated uploads. I never used the network ports feature during my days of working primarily with Arduino IDE 1.x, and never with a real project, so I don't have a lot of knowledge in this area. I have done a fair amount of using it while beta testing the Arduino IDE 2.x network upload system, but apparently I always had a password set in the sketch because I never before noticed this behavior.
I think that the generalized flexible approach taken with the new "user provided fields" system is overall a big improvement that will eventually allow the creators of Arduino boards platforms to do some really cool things. I'm not sure it is possible to achieve parity between the new system and the old one in this particular respect, and I think it is a worthwhile tradeoff in the long run. However, I think the impact of the change can at least be mitigated:
- Allow empty fields
- Update relevant documentation, including that of 3rd party projects
I have created issues to track those tasks. Since the latter does not involve changes to a repository maintained by the Arduino Tooling Team responsible for the Arduino IDE and Arduino CLI, that issue is in an internal tracker, but the issue for the former is here:
Thank you very much @ptillique.
Just to explain, I live in France (hence my bad English) and I make prototype lamps based on esp32 cards and WS2812 leds. I already have about fifteen lamps distributed throughout my house. Same code for all, even if the functionalities are differents. I have a SPIFFS txt file that I position once and for all in USB and which contain on which device we are.
It's modular, it allows me to fix a bug on global functions without touching 15 different codes.
All that to say that during a global update, I have to change port and launch an upload 15 times in a row. That's also why I removed password on OTA for prototypes.
Luckily I don't do this every day.
That's for the context. You can close the topic if you want, I'll follow next steps on Github.
Thanks again
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.