MicroPython WebREPL ValueError beheben in File "webrepl.py", line 72, in start

English Deutsch

Problem:

Sie möchten Ihr MicroPython-WebREPL programmatisch mit webrepl.start(password="...") konfigurieren, aber Sie sehen einen Stacktrace wie

webrepl_stacktrace.txt
>>> webrepl.start(password="Rua8ohjedo")
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "webrepl.py", line 72, in start
ValueError:

Lösung

Verwenden Sie ein kürzeres Passwort mit maximal 8 Zeichen:

webrepl_usage_example.py
webrepl.start(password="Rua8ohje")

Check out similar posts by category: Embedded, MicroPython, Python