I read some RFID Tags with <STX>RFID String<EOT>
how can i use read_until with this EOT character. I tried this:
serResponse = self.ser.read_until(chr(4))
didn't work, I got the string after a timeout
[EDIT]
while True:
for c in ser.read():
line.append(c)
if c == '\n':
print("Line: " + ''.join(line))
line = []
break
how can I change the '\n' to check for EOT or STX char.
that the print(c) output of one tag: 2 82 51 48 52 50 70 65 50 49 65 49 4
I thought I can check for c=='4' or c==4, but it didn't work.