Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ python3 serialTest.py
- Traceback (most recent call last):
- File "/home/psysc0rpi0n/Arduino/SerialTest/serialTest.py", line 5, in <module>
- ser.write("getData")
- File "/home/psysc0rpi0n/.local/lib/python3.9/site-packages/serial/serialposix.py", line 616, in write
- d = to_bytes(data)
- File "/home/psysc0rpi0n/.local/lib/python3.9/site-packages/serial/serialutil.py", line 65, in to_bytes
- raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
- TypeError: unicode strings are not supported, please encode to bytes: 'getData'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement