nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
LwM2M carrier library events

Data Structures

struct  lwm2m_carrier_event_fota_start_t
 
struct  lwm2m_carrier_event_app_data_t
 
struct  lwm2m_carrier_event_deferred_t
 
struct  lwm2m_carrier_event_error_t
 
struct  lwm2m_carrier_event_t
 

Typedefs

typedef uint32_t lwm2m_carrier_event_modem_domain_t
 

Functions

int lwm2m_carrier_event_handler (const lwm2m_carrier_event_t *event)
 

LwM2M carrier library events

Used in lwm2m_carrier_event_t::type

#define LWM2M_CARRIER_EVENT_LTE_LINK_UP   1
 
#define LWM2M_CARRIER_EVENT_LTE_LINK_DOWN   2
 
#define LWM2M_CARRIER_EVENT_LTE_POWER_OFF   3
 
#define LWM2M_CARRIER_EVENT_BOOTSTRAPPED   4
 
#define LWM2M_CARRIER_EVENT_REGISTERED   5
 
#define LWM2M_CARRIER_EVENT_DEREGISTERED   6
 
#define LWM2M_CARRIER_EVENT_DEFERRED   7
 
#define LWM2M_CARRIER_EVENT_FOTA_START   8
 
#define LWM2M_CARRIER_EVENT_FOTA_SUCCESS   9
 
#define LWM2M_CARRIER_EVENT_REBOOT   10
 
#define LWM2M_CARRIER_EVENT_MODEM_DOMAIN   11
 
#define LWM2M_CARRIER_EVENT_APP_DATA   12
 
#define LWM2M_CARRIER_EVENT_MODEM_INIT   13
 
#define LWM2M_CARRIER_EVENT_MODEM_SHUTDOWN   14
 
#define LWM2M_CARRIER_EVENT_ERROR_CODE_RESET   15
 
#define LWM2M_CARRIER_EVENT_ERROR   20
 

LwM2M carrier library modem domain event types

#define LWM2M_CARRIER_MODEM_EVENT_ME_OVERHEATED   0
 
#define LWM2M_CARRIER_MODEM_EVENT_ME_BATTERY_LOW   1
 
#define LWM2M_CARRIER_MODEM_EVENT_RESET_LOOP   2
 

LwM2M carrier library app data event types

Used in lwm2m_carrier_event_app_data_t::type.

#define LWM2M_CARRIER_APP_DATA_EVENT_DATA_WRITE   0
 
#define LWM2M_CARRIER_APP_DATA_EVENT_OBSERVE_START   1
 
#define LWM2M_CARRIER_APP_DATA_EVENT_OBSERVE_STOP   2
 

LwM2M carrier library event deferred reasons

Used in lwm2m_carrier_event_deferred_t::reason

#define LWM2M_CARRIER_DEFERRED_NO_REASON   0
 
#define LWM2M_CARRIER_DEFERRED_PDN_ACTIVATE   1
 
#define LWM2M_CARRIER_DEFERRED_BOOTSTRAP_NO_ROUTE   2
 
#define LWM2M_CARRIER_DEFERRED_BOOTSTRAP_CONNECT   3
 
#define LWM2M_CARRIER_DEFERRED_BOOTSTRAP_SEQUENCE   4
 
#define LWM2M_CARRIER_DEFERRED_SERVER_NO_ROUTE   5
 
#define LWM2M_CARRIER_DEFERRED_SERVER_CONNECT   6
 
#define LWM2M_CARRIER_DEFERRED_SERVER_REGISTRATION   7
 
#define LWM2M_CARRIER_DEFERRED_SERVICE_UNAVAILABLE   8
 
#define LWM2M_CARRIER_DEFERRED_SIM_MSISDN   9
 

LwM2M carrier library event error types

Used in lwm2m_carrier_event_error_t::type.

#define LWM2M_CARRIER_ERROR_NO_ERROR   0
 
#define LWM2M_CARRIER_ERROR_LTE_LINK_UP_FAIL   1
 
#define LWM2M_CARRIER_ERROR_LTE_LINK_DOWN_FAIL   2
 
#define LWM2M_CARRIER_ERROR_BOOTSTRAP   3
 
#define LWM2M_CARRIER_ERROR_FOTA_FAIL   4
 
#define LWM2M_CARRIER_ERROR_CONFIGURATION   5
 
#define LWM2M_CARRIER_ERROR_INIT   6
 
#define LWM2M_CARRIER_ERROR_RUN   7
 
#define LWM2M_CARRIER_ERROR_CONNECT   8
 

Detailed Description

Events generated by the carrier library

The lwm2m_carrier_event_handler() function may be implemented by your application. A __weak implementation is included in lwm2m_carrier.c.