ARMmbed / ATParser

Parser for AT commands and similar protocols.
35 stars 27 forks source link

Parse response #18

Open izaa opened 5 years ago

izaa commented 5 years ago

Hi,

I'm trying to parse the response of AT Command.

In telnet, i can test the command AT and it will response two empty lines and the response OK and an empty line after that. For example

AT

OK

How i can read that response, since at.recv("OK") returns false.

Thank you for the help!

Felix-ZJU commented 2 years ago

I guess that's because the parser looks for direct "OK" but the device returned new line (\r\n) before "OK".