I would like to read 2 or more lines that are result of response from a GSM board which is receiving AT commands by micropython board,
and for example i need the third line of its response and i'm using uart.read() , also specifying the number of bytes, does not work properly , when i use uart.readline() the same thing it reads until the \n caracter but i cant get read the third line.
Is there any people that can give me a brief solution of it or any topic related with it
Thanks for your attention,
What i receive:
Code: Select all
>>> uart.readline()
b'+CMGL: 1,"REC READ","w49434p41425@4","","17/0'
Code: Select all
>>> uart.readline()
b'+CMGL: 1,"REC READ","w49434p41425@4","","17/0'
A simple demo of SMS text messaging.
OK