This documentation provides detailed information on the m2mb programming API to be used on Telit's CatM1/nBIoT modules supporting AppZone.
Typical usage of API groups requires:
- Initialization of the group with a m2mb_xxx_init() function, which usually allows to configure a callback function
- Usage of its API set, possibly managing the events through the callback function events
- lastly a deinit with a m2mb_xxx_deinit() function e.g.
M2MB_NET_HANDLE network_handle = NULL;
void Network_callback(M2MB_NET_HANDLE h, M2MB_NET_IND_E net_event, UINT16 resp_size, void *resp_struct,
void *myUserdata)
{
M2MB_RESULT_E retVal = M2MB_RESULT_SUCCESS;
switch (net_event)
{
case M2MB_NET_GET_REG_STATUS_INFO_RESP:
break;
case M2MB_NET_GET_SIGNAL_INFO_RESP:
break;
case M2MB_NET_GET_BER_RESP:
break;
default:
break;
}
}
void M2MB_main( int argc, char **argv )
{
if(M2MB_RESULT_SUCCESS ==
m2mb_net_init(&network_handle, Network_callback, myUserdata))
{
}
}