Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse response #18

Open
izaa opened this issue Aug 19, 2018 · 1 comment
Open

Parse response #18

izaa opened this issue Aug 19, 2018 · 1 comment

Comments

@izaa
Copy link

izaa commented Aug 19, 2018

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants