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

Example for AT commands similar to serial.threaded #51

Open
gbrucepayne opened this issue Mar 21, 2020 · 1 comment
Open

Example for AT commands similar to serial.threaded #51

gbrucepayne opened this issue Mar 21, 2020 · 1 comment

Comments

@gbrucepayne
Copy link

Could you produce an example for bidirectional AT command processing similar to what you have in the main pyserial examples?

@d21d3q
Copy link

d21d3q commented Apr 20, 2020

For now I can guide you a little bit.
You would have to implement asyncio Protocol. in data_received you would have to parse incoming data and detect new lines and handle them.

You can have a look at pymodbus implementation. This one is quite complex because it also deals with other async frameworks so that there are some abstraction added. But while digging you can find interesting bits.

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