-
Need help reading serialport data on my ESP32. I'm following some example code I found and have this in my main.py: `from machine import UART uart = UART(2, tx=17, rx=16) while True:
But all I get is an error: MPY: soft reboot When I omit the 'msg=' line and just print 'data' I get this: b'\xe0\x00\x00\xe0\x00\x00\x00\xe0\x00\xe0\x00\x00\x00\x00\x00\x00\xe0\x00\xe0\x00\x00\xe0\x00\x00\x00\xe0\x00\x00\x00\x00\xe0\xe0\xe0\x00\x00\xe0\x00\x00\x00\x00\xe0\x00\x00\x00\xe0\x00\x00\xe0\x00\x00\xe0\x00\x00\xe0\x00\x00\xe0\x00\xe0\x00\x00\x00\xe0\x00\xe0\xe0\x00\xe0\xe0\xe0\x00\x00\xe0\x00\x00\x00\x00\xe0\x00\xe0\x00\x00\xe0\x00\x00\x00\xe0\x00\xe0\x00\x00\x00\xe0\x00\x00\xe0\x00\x00\x00\x00\xe0\x00\xe0\x00\x00\x00\xe0\xe0\x00\x00\x00\xe0\x00\x00\xe0\xe0\x00\x00\xe0\x00' |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Drop UART in search. Think there was a recent comment about readline versus read |
Beta Was this translation helpful? Give feedback.
-
So basically all good now :) |
Beta Was this translation helpful? Give feedback.
So basically all good now :)
Aside from another issue! Will post to new thread