Page 1 of 1
WebREPL Password Reset
Posted: Mon May 09, 2016 3:00 am
by Andriod
I seem to have mis-set/confused my ESP8266 by trying to set a password of &H8PC@4pJqTM now it won't take any password at all. How can I re-set or reinitialize the password for the poor board? Reflashing did nothing.
Re: WebREPL Password Reset
Posted: Mon May 09, 2016 9:53 am
by deshipu
I think you can do:
Code: Select all
import webrepl
webrepl._webrepl.password("<password>")
But mind that underscore -- it means that an internal implementation detail that's not part of the API and can change without warning.
Re: WebREPL Password Reset
Posted: Mon May 09, 2016 11:13 am
by pfalcon
The above will change password for the current session. The password is stored in port_config.py in the filesystem. Looking at that file will show current password and gives an idea how to set new (active after reboot).
Re: WebREPL Password Reset
Posted: Mon May 09, 2016 3:49 pm
by Andriod
Can port_config be used for other initialization? What reads it and when?
Re: WebREPL Password Reset
Posted: Mon May 09, 2016 4:40 pm
by pfalcon
You can find always up-to-date answers to those questions in the source code. I can say something which tomorrow will be changed drastically. But source code will never lie.
Re: WebREPL Password Reset
Posted: Mon May 09, 2016 11:22 pm
by Andriod
Hmm, it's dangerous to base too much on what the code does today. Is this considered a supported interface in any sense or for any purpose?