APIs to set/clear callbacks that will be called when the modem transport layer receives unexpected responses from the modem.
More...
APIs to set/clear callbacks that will be called when the modem transport layer receives unexpected responses from the modem.
We recommend that the application provides an implemention of Thingstream_Application_modemCallback() to receive responses from the modem.
◆ Thingstream_Modem2_clearCallback
Clear the function that will be called when the transport layer receive an unrecognized response. Note that calling this will indicate to the stack that the client no longer wishes to accept unrecognized responses from the modem.
- Parameters
-
self | this instance of modem transport |
- Deprecated:
- Alternative Thingstream_Application_modemCallback() is preferred
◆ Thingstream_ModemUssd_clearCallback
Clear the function that will be called when the transport layer receives an unrecognized response. Note that calling this will indicate to the stack that the client no longer wishes to accept unrecognized responses from the modem.
- Parameters
-
self | instance of modem transport |
- Deprecated:
- Alternative Thingstream_Application_modemCallback() is preferred
◆ ThingstreamModemCallback_t
typedef void(* ThingstreamModemCallback_t) (void *cookie, const char *response, uint16_t len) |
Type definition of the "modem response arrived" callback
- Parameters
-
cookie | the cookie passed to Thingstream_Modem_setCallback() |
response | the unrecognized modem response |
len | the length of the response |
- Deprecated:
- Alternative Thingstream_Application_modemCallback() is preferred
◆ Thingstream_Modem2_setCallback()
◆ Thingstream_ModemUssd_setCallback()