Tue, 10 Oct 2023 16:28:45 +0200
MicroPython interface
- Made the ESP device WiFi connect methdo a bit more robust w.r.t. additional output.
src/eric7/MicroPython/Devices/EspDevices.py | file | annotate | diff | comparison | revisions |
--- a/src/eric7/MicroPython/Devices/EspDevices.py Tue Oct 10 14:53:23 2023 +0200 +++ b/src/eric7/MicroPython/Devices/EspDevices.py Tue Oct 10 16:28:45 2023 +0200 @@ -789,6 +789,9 @@ if err: return False, err + while not out.startswith(b"{"): + # discard output until next newline + _, out = out.split(b"\r\n", 1) result = json.loads(out.decode("utf-8").strip()) if result["connected"]: error = ""