The M2M_arRsp.c file contains the following callback function.
Callback |
Event starting the callback: |
M2M_onReceiveResultCmd(…) |
When an AT command is entered into the module, it is executed by the AT parser. The callback function captures the AT command response generated by the AT parser. The code, written in the callback by the user, in accordance with the AT response performs the programmed action. The callback works either in Command and Data mode. |
M2M_onReceiveResultCmd(…) example:
• Send an AT command to AT parser by means of the m2m_os_iat_at_command(…) API ;
• AT parser executes the received AT command and the M2M_on_ReceiveResultCmd(…) callback is called;
• M2M_onReceiveResultCmd(…) callback executes the code written by the developer in accordance with the AT command result.