Page 1 of 1

UART Read stopped working Esp8266 v1.11

Posted: Fri Jul 26, 2019 11:59 am
by Som
Hello,

I was using the below code on V1.9.1 and it was working fine for last one year.

buf=bytearray(15)
mv = memoryview(buf)
idx = 0
waittimer=0
co2.write(p.encode()+b'\r\n')
while idx < len(buf):
if co2.any():
bytes_read = co2.readinto(mv[idx:])
idx += bytes_read

The response for my usecase was b':010302177073\r\n' when I used bytes(buf)

But last week I migrated my code to V1.11 and bytes(buf) now returns b':\n0&\x120\n4qSL\x00\x00\x00\x00'.

Any suggestions?

Re: UART Read stopped working Esp8266 v1.11

Posted: Sat Jul 27, 2019 12:14 pm
by Som
Solved it...had to change the stop bit...not sure why though.