WebREPL Password Reset
WebREPL Password Reset
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
I think you can do:
But mind that underscore -- it means that an internal implementation detail that's not part of the API and can change without warning.
Code: Select all
import webrepl
webrepl._webrepl.password("<password>")
Re: WebREPL Password Reset
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).
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/
Re: WebREPL Password Reset
Can port_config be used for other initialization? What reads it and when?
Re: WebREPL Password Reset
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.
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/
Re: WebREPL Password Reset
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?