nRF5 IoT SDK  v0.9.0
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
OMA LWM2M objects definititions and types

OMA LWM2M objects definititions and types. More...

Data Structures

struct  lwm2m_security_t
 
struct  lwm2m_server_t
 
struct  lwm2m_firmware_t
 
struct  lwm2m_acl_t
 
struct  lwm2m_connectivity_monitoring_t
 
struct  lwm2m_connectivity_statistics_t
 
struct  lwm2m_device_t
 
struct  lwm2m_location_t
 
struct  lwm2m_software_update_t
 

Macros

#define LWM2M_OBJ_SECURITY   0
 
#define LWM2M_OBJ_SERVER   1
 
#define LWM2M_OBJ_ACL   2
 
#define LWM2M_OBJ_DEVICE   3
 
#define LWM2M_OBJ_CONN_MON   4
 
#define LWM2M_OBJ_FIRMWARE   5
 
#define LWM2M_OBJ_LOCATION   6
 
#define LWM2M_OBJ_CONN_STAT   7
 
#define LWM2M_OBJ_SOFTWARE_UPDATE   9
 
#define LWM2M_SECURITY_SERVER_URI   0
 
#define LWM2M_SECURITY_BOOTSTRAP_SERVER   1
 
#define LWM2M_SECURITY_SECURITY_MODE   2
 
#define LWM2M_SECURITY_PUBLIC_KEY   3
 
#define LWM2M_SECURITY_SERVER_PUBLIC_KEY   4
 
#define LWM2M_SECURITY_SECRET_KEY   5
 
#define LWM2M_SECURITY_SMS_SECURITY_MODE   6
 
#define LWM2M_SECURITY_SMS_BINDING_KEY_PARAM   7
 
#define LWM2M_SECURITY_SMS_BINDING_SECRET_KEY   8
 
#define LWM2M_SECURITY_SERVER_SMS_NUMBER   9
 
#define LWM2M_SECURITY_SHORT_SERVER_ID   10
 
#define LWM2M_SECURITY_CLIENT_HOLD_OFF_TIME   11
 
#define LWM2M_SERVER_SHORT_SERVER_ID   0
 
#define LWM2M_SERVER_LIFETIME   1
 
#define LWM2M_SERVER_DEFAULT_MIN_PERIOD   2
 
#define LWM2M_SERVER_DEFAULT_MAX_PERIOD   3
 
#define LWM2M_SERVER_DISABLE   4
 
#define LWM2M_SERVER_DISABLE_TIMEOUT   5
 
#define LWM2M_SERVER_NOTIFY_WHEN_DISABLED   6
 
#define LWM2M_SERVER_BINDING   7
 
#define LWM2M_SERVER_REGISTRATION_UPDATE_TRIGGER   8
 
#define LWM2M_FIRMWARE_PACKAGE   0
 
#define LWM2M_FIRMWARE_PACKAGE_URI   1
 
#define LWM2M_FIRMWARE_UPDATE   2
 
#define LWM2M_FIRMWARE_STATE   3
 
#define LWM2M_FIRMWARE_UPDATE_SUPPORTED_OBJECTS   4
 
#define LWM2M_FIRMWARE_UPDATE_RESULT   5
 
#define LWM2M_FIRMWARE_STATE_IDLE   1
 
#define LWM2M_FIRMWARE_STATE_DOWNLOADING   2
 
#define LWM2M_FIRMWARE_STATE_DOWNLOADED   3
 
#define LWM2M_FIRMWARE_UPDATE_RESULT_DEFAULT   0
 
#define LWM2M_FIRMWARE_UPDATE_RESULT_SUCCESS   1
 
#define LWM2M_FIRMWARE_UPDATE_RESULT_ERROR_STORAGE   2
 
#define LWM2M_FIRMWARE_UPDATE_RESULT_ERROR_MEMORY   3
 
#define LWM2M_FIRMWARE_UPDATE_RESULT_ERROR_CONN_LOST   4
 
#define LWM2M_FIRMWARE_UPDATE_RESULT_ERROR_CRC   5
 
#define LWM2M_FIRMWARE_UPDATE_RESULT_ERROR_UNSUPPORTED   6
 
#define LWM2M_FIRMWARE_UPDATE_RESULT_ERROR_INVALID_URI   7
 
#define LWM2M_ACL_OBJECT_ID   0
 
#define LWM2M_ACL_INSTANCE_ID   1
 
#define LWM2M_ACL_ACL   2
 
#define LWM2M_ACL_CONTROL_OWNER   3
 
#define LWM2M_CONN_MON_NETWORK_BEARER   0
 
#define LWM2M_CONN_MON_AVAILABLE_NETWORK_BEARER   1
 
#define LWM2M_CONN_MON_RADIO_SIGNAL_STRENGHT   2
 
#define LWM2M_CONN_MON_LINK_QUALITY   3
 
#define LWM2M_CONN_MON_IP_ADDRESSES   4
 
#define LWM2M_CONN_MON_ROUTER_IP_ADRESSES   5
 
#define LWM2M_CONN_MON_LINK_UTILIZATION   6
 
#define LWM2M_CONN_MON_APN   7
 
#define LWM2M_CONN_MON_CELL_ID   8
 
#define LWM2M_CONN_MON_SMNC   9
 
#define LWM2M_CONN_MON_SMCC   10
 
#define LWM2M_CONN_STAT_SMS_TX_COUNTER   0
 
#define LWM2M_CONN_STAT_SMS_RX_COUNTER   1
 
#define LWM2M_CONN_STAT_TX_DATA   2
 
#define LWM2M_CONN_STAT_RX_DATA   3
 
#define LWM2M_CONN_STAT_MAX_MSG_SIZE   4
 
#define LWM2M_CONN_STAT_AVG_MSG_SIZE   5
 
#define LWM2M_CONN_STAT_START_RESET   6
 
#define LWM2M_DEVICE_MANUFACTURER   0
 
#define LWM2M_DEVICE_MODEL_NUMBER   1
 
#define LWM2M_DEVICE_SERIAL_NUMBER   2
 
#define LWM2M_DEVICE_FIRMWARE_VERSION   3
 
#define LWM2M_DEVICE_REBOOT   4
 
#define LWM2M_DEVICE_FACTORY_RESET   5
 
#define LWM2M_DEVICE_AVAILABLE_POWER_SOURCES   6
 
#define LWM2M_DEVICE_POWER_SOURCE_VOLTAGE   7
 
#define LWM2M_DEVICE_POWER_SOURCE_CURRENT   8
 
#define LWM2M_DEVICE_BATTERY_LEVEL   9
 
#define LWM2M_DEVICE_MEMORY_FREE   10
 
#define LWM2M_DEVICE_ERROR_CODE   11
 
#define LWM2M_DEVICE_RESET_ERROR_CODE   12
 
#define LWM2M_DEVICE_CURRENT_TIME   13
 
#define LWM2M_DEVICE_UTC_OFFSET   14
 
#define LWM2M_DEVICE_TIMEZONE   15
 
#define LWM2M_DEVICE_SUPPORTED_BINDINGS   16
 
#define LWM2M_LOCATION_LATITUDE   0
 
#define LWM2M_LOCATION_LONGITUDE   1
 
#define LWM2M_LOCATION_ALTITUDE   2
 
#define LWM2M_LOCATION_UNCERTAINTY   3
 
#define LWM2M_LOCATION_VELOCITY   4
 
#define LWM2M_LOCATION_TIMESTAMP   5
 
#define LWM2M_SW_UPDATE_PKG_NAME   0
 
#define LWM2M_SW_UPDATE_PKG_VERSION   1
 
#define LWM2M_SW_UPDATE_PACKAGE   2
 
#define LWM2M_SW_UPDATE_PACKAGE_URI   3
 
#define LWM2M_SW_UPDATE_INSTALL   4
 
#define LWM2M_SW_UPDATE_CHECKPOINT   5
 
#define LWM2M_SW_UPDATE_UNINSTALL   6
 
#define LWM2M_SW_UPDATE_UPDATE_STATE   7
 
#define LWM2M_SW_UPDATE_SUPPORTED_OBJECTS   8
 

Functions

void lwm2m_instance_security_init (lwm2m_security_t *p_instance)
 Initialize a LWM2M security object instance. More...
 
void lwm2m_instance_server_init (lwm2m_server_t *p_instance)
 Initialize a LWM2M server object instance. More...
 
void lwm2m_instance_firmware_init (lwm2m_firmware_t *p_instance)
 Initialize a LWM2M firmware object instance. More...
 
void lwm2m_instance_acl_init (lwm2m_acl_t *p_instance)
 Initialize a LWM2M ACL object instance. More...
 
void lwm2m_instance_connectivity_monitoring_init (lwm2m_connectivity_monitoring_t *p_instance)
 Initialize a LWM2M connectivity monitoring object instance. More...
 
void lwm2m_instance_connectivity_statistics_init (lwm2m_connectivity_statistics_t *p_instance)
 Initialize a LWM2M connectivity statistics object instance. More...
 
void lwm2m_instance_device_init (lwm2m_device_t *p_instance)
 Initialize a LWM2M device object instance. More...
 
void lwm2m_instance_location_init (lwm2m_location_t *p_instance)
 Initialize a LWM2M location object instance. More...
 
void lwm2m_instance_software_update_init (lwm2m_software_update_t *p_instance)
 Initialize a LWM2M software update object instance. More...
 

Detailed Description

OMA LWM2M objects definititions and types.

Note
The definitions used in this module are from the OMA LWM2M "Lightweight Machine to Machine Technical Specification - OMA_TS-LightweightM2M-V1_0-20131210-C". The specification could be found at http://openmobilealliance.org/.

Function Documentation

void lwm2m_instance_acl_init ( lwm2m_acl_t p_instance)

Initialize a LWM2M ACL object instance.

Must be called before any use of the instance.

Parameters
[in]p_instancePointer to instance structure to initialize.
void lwm2m_instance_connectivity_monitoring_init ( lwm2m_connectivity_monitoring_t p_instance)

Initialize a LWM2M connectivity monitoring object instance.

Must be called before any use of the instance.

Parameters
[in]p_instancePointer to instance structure to initialize.
void lwm2m_instance_connectivity_statistics_init ( lwm2m_connectivity_statistics_t p_instance)

Initialize a LWM2M connectivity statistics object instance.

Must be called before any use of the instance.

Parameters
[in]p_instancePointer to instance structure to initialize.
void lwm2m_instance_device_init ( lwm2m_device_t p_instance)

Initialize a LWM2M device object instance.

Must be called before any use of the instance.

Parameters
[in]p_instancePointer to instance structure to initialize.
void lwm2m_instance_firmware_init ( lwm2m_firmware_t p_instance)

Initialize a LWM2M firmware object instance.

Must be called before any use of the instance.

Parameters
[in]p_instancePointer to instance structure to initialize.
void lwm2m_instance_location_init ( lwm2m_location_t p_instance)

Initialize a LWM2M location object instance.

Must be called before any use of the instance.

Parameters
[in]p_instancePointer to instance structure to initialize.
void lwm2m_instance_security_init ( lwm2m_security_t p_instance)

Initialize a LWM2M security object instance.

Must be called before any use of the instance.

Parameters
[in]p_instancePointer to instance structure to initialize.
void lwm2m_instance_server_init ( lwm2m_server_t p_instance)

Initialize a LWM2M server object instance.

Must be called before any use of the instance.

Parameters
[in]p_instancePointer to instance structure to initialize.
void lwm2m_instance_software_update_init ( lwm2m_software_update_t p_instance)

Initialize a LWM2M software update object instance.

Must be called before any use of the instance.

Parameters
[in]p_instancePointer to instance structure to initialize.