-
Notifications
You must be signed in to change notification settings - Fork 61
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
Adding _Cellular_RegisterInputBufferCallback in common layer #137
Adding _Cellular_RegisterInputBufferCallback in common layer #137
Conversation
92ae20f
to
37de419
Compare
* Adding _Cellular_RegisterUrcDataCallback to handle data stream in URC response
37de419
to
08687f2
Compare
* Handle the URC data in callback. No data mode is required.
I've just today found out about your _Cellular_RegisterUrcDataCallback function. through #123 |
Adding _Cellular_RegisterInputBufferCallback to handle data stream in URC response referenced in #123.
Cellular modem may return binary data in URC.
For example, BG96 allows to receive the socket data in URC with direct push mode.
The binary data can't be handled by cellular pktio since it handles data in line. Binary stream can only be handled in AT command response not in URC.
This PR makes use of a callback function to pass the input buffer received to the port. The port can decide to handle the input buffer in the callback or return to pktio for further parsing.
Module porting callback can return the following value to the pktio:
Description
Test Steps
Checklist:
Related Issue
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.