79458660

Date: 2025-02-21 21:40:52
Score: 1
Natty:
Report link

In Python you need to specify the newline character as a byte :

response = ser.read_until(b"\n")

"\n" is two characters whereas b"\n" is one byte delimiter.

Corresponding documentation for Python 3 : https://docs.python.org/3/library/stdtypes.html

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: johnw