How to run WebREPL without webrepl_setup in MicroPython
Problem:
You want to enable WebREPL on your MicroPython board using
example.py
import webrepl
webrepl.start()
but it is only showing this error message:
example.txt
WebREPL is not configured, run 'import webrepl_setup'
However, you want to configure WebREPL programmatically instead of manually running it on every single board.
Solution
Use
example.py
import webrepl
webrepl.start(password="Rua8ohje")
This will circumvent webrepl_setup
completely and is compatible with an automated setup process.
*Note:*At the time of writing this you can only use passwords with 8 characters max!(see How to fix MicroPython WebREPL ValueError in File „webrepl.py“, line 72, in start )
Check out similar posts by category:
Embedded, MicroPython, Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow