Detailed Description

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "liblwm2m.h"
#include "lwm2m_client_config.h"
+ Include dependency graph for device.h:

Go to the source code of this file.

Enumerations

enum  lwm2m_device_resources {
  LWM2M_RES_MANUFACTURER = 0, LWM2M_RES_MODEL_NO, LWM2M_RES_SERIAL, LWM2M_RES_FW_VER,
  LWM2M_RES_REBOOT, LWM2M_RES_FRESET, LWM2M_RES_POWER_SRC, LWM2M_RES_POWER_VOL,
  LWM2M_RES_POWER_AMP, LWM2M_RES_BATTERY_LEVEL, LWM2M_RES_MEM_FREE, LWM2M_RES_ERROR_CODE,
  LWM2M_RES_ERROR_CODE_RESET, LWM2M_RES_TIME, LWM2M_RES_TIME_OFFSET, LWM2M_RES_TIME_ZONE,
  LWM2M_RES_BINDINGS, LWM2M_RES_TYPE, LWM2M_RES_HW_VERSION, LWM2M_RES_SW_VERSION,
  LWM2M_RES_BATTERY_STATUS, LWM2M_RES_MEM_TOTAL, LWM2M_RES_EXT_DEV_INFO, LWM2M_DEVICE_RESOURCES
}
 Resources of the LwM2M device object instance. More...
 
enum  lwm2m_device_error_codes {
  LWM2M_DEVICE_ERR_NO_ERR = 0, LWM2M_DEVICE_ERR_LOW_BATT = 1, LWM2M_DEVICE_ERR_EXT_OFF = 2, LWM2M_DEVICE_ERR_GPS_ERR = 3,
  LWM2M_DEVICE_ERR_LOW_SIGNAL = 4, LWM2M_DEVICE_ERR_NO_MEM = 5, LWM2M_DEVICE_ERR_SMS_ERR = 6, LWM2M_DEVICE_ERR_IP_ERR = 7,
  LWM2M_DEVICE_ERR_PERIPH_ERR = 8
}
 Error codes for the Error resource in the device object of LwM2M. More...
 

Functions

void lwm2m_free_object_device (lwm2m_object_t *obj)
 Frees the memory of obj device object. More...
 
bool lwm2m_device_reboot_requested (void)
 Determines if a reboot request has been issued to the device by a server. More...