Public Member Functions | |
nsapi_size_or_error_t | send (const void *data, nsapi_size_t size) |
Send data over cellular control plane. More... | |
nsapi_size_or_error_t | recv (void *buffer, nsapi_size_t size) |
Receive data over cellular control plane. More... | |
Protected Member Functions | |
virtual void | data_received () |
Receives data from the control plane PDP context. More... | |
virtual void | attach (void(*callback)(void *), void *data) |
Register a callback on state change of the socket. More... | |
Definition at line 24 of file QUECTEL_BG96_ControlPlane_netif.h.
|
protectedvirtualinherited |
Register a callback on state change of the socket.
The specified callback will be called on state changes such as when the socket can recv/send successfully and on when an error occurs. The callback may also be called spuriously without reason.
The callback may be called in an interrupt context and should not perform expensive operations such as recv/send calls.
callback | Function to call on state change |
data | Argument to pass to callback |
Implements ControlPlane_netif.
|
protectedvirtualinherited |
Receives data from the control plane PDP context.
This function is called by cellular PDP context when data is received from network. It will invoke the callback set by the above attach.
Implements ControlPlane_netif.
|
virtual |
Receive data over cellular control plane.
cpdata | Destination buffer for data received from control plane connection |
cpdata_length | Length of data in bytes |
Reimplemented from AT_ControlPlane_netif.
|
virtual |
Send data over cellular control plane.
cpdata | Buffer of data to be sent over control plane connection |
cpdata_length | Length of data in bytes |
Reimplemented from AT_ControlPlane_netif.