-
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
Receiving a multi-line payload response from MQTT-related BG95 AT commands #123
Comments
Hi mikalai, Thank you for your interest in cellular interface. |
Hi mikalai,
|
Hi chinglee, |
I would also like to add here that I've encountered the same issue on SIM800C. There are however other issues with the current MQTT client on SIM800C before I would consider it viable for production use, and I would encourage others to use the FreeRTOS-Cellular socket interface + coreMQTT (or similar) on the SIM800C platform. For the sake of documenting the issue, on SIM800C the incoming messages are provided via |
Hi tpecar, Thank you for your feedback to cellular interface. |
Hi chinglee! I did everything in the same way as for sockets, as you advised, and now I can receive incoming MQTT publications without any issues. Thank you so much for your help! |
PR #137 is merged. I will close this issue first. Feel free to feedback further question here. |
Hello!
I'm trying to implement MQTT-related AT commands for BG95 and have encountered one issue related to receiving multi-line response with AT+QMTRECV command.
I registered URC handler for "QMTRECV" and can handle incoming MQTT publications.
But if I send MQTT publication with payload that include <LF> symbols inside (formatted JSON with line feed):
thereafter the first <LF> symbol in payload interpreted as the end of line so in the URC handler for "QMTRECV" I can only see part of the payload up to the <LF> symbol. Next parts are come as AT_UNDEFINED messages.
Looks like an issue while processing responses in _handleAllReceived because the responses must include <CR><LF><response><CR><LF> according to AT Commands Manual
I can register _Cellular_RegisterUndefinedRespCallback to proceed all the rest of "QMTRECV" but it looks like workaround. What can you suggest to do in this situation?
Thank you!
The text was updated successfully, but these errors were encountered: