120 #ifndef CONFIG_LWM2M_DEVICE_NAME
121 #define CONFIG_LWM2M_DEVICE_NAME "testRIOTDevice"
127 #ifndef CONFIG_LWM2M_DEVICE_MANUFACTURER
128 #define CONFIG_LWM2M_DEVICE_MANUFACTURER "A RIOT maker"
136 #ifndef CONFIG_LWM2M_DEVICE_MODEL
137 #define CONFIG_LWM2M_DEVICE_MODEL RIOT_BOARD
143 #ifndef CONFIG_LWM2M_DEVICE_SERIAL
144 #define CONFIG_LWM2M_DEVICE_SERIAL "undefined"
152 #ifndef CONFIG_LWM2M_DEVICE_FW_VERSION
153 #define CONFIG_LWM2M_DEVICE_FW_VERSION RIOT_VERSION
174 #define CONFIG_LWM2M_DEVICE_BINDING_U
179 #define CONFIG_LWM2M_DEVICE_BINDING_UQ
184 #define CONFIG_LWM2M_DEVICE_BINDING_S
189 #define CONFIG_LWM2M_DEVICE_BINDING_SQ
194 #define CONFIG_LWM2M_DEVICE_BINDING_US
199 #define CONFIG_LWM2M_DEVICE_BINDING_UQS
206 #ifndef CONFIG_LWM2M_DEVICE_TYPE
207 #define CONFIG_LWM2M_DEVICE_TYPE "RIOT device"
215 #ifndef CONFIG_LWM2M_DEVICE_HW_VERSION
216 #define CONFIG_LWM2M_DEVICE_HW_VERSION RIOT_BOARD
224 #ifndef CONFIG_LWM2M_DEVICE_SW_VERSION
225 #define CONFIG_LWM2M_DEVICE_SW_VERSION RIOT_VERSION
234 #if defined(CONFIG_LWM2M_DEVICE_BINDING_U)
235 #define CONFIG_LWM2M_DEVICE_BINDINGS "U"
236 #elif defined(CONFIG_LWM2M_DEVICE_BINDING_UQ)
237 #define CONFIG_LWM2M_DEVICE_BINDINGS "UQ"
238 #elif defined(CONFIG_LWM2M_DEVICE_BINDING_S)
239 #define CONFIG_LWM2M_DEVICE_BINDINGS "S"
240 #elif defined(CONFIG_LWM2M_DEVICE_BINDING_SQ)
241 #define CONFIG_LWM2M_DEVICE_BINDINGS "SQ"
242 #elif defined(CONFIG_LWM2M_DEVICE_BINDING_US)
243 #define CONFIG_LWM2M_DEVICE_BINDINGS "US"
244 #elif defined(CONFIG_LWM2M_DEVICE_BINDING_UQS)
245 #define CONFIG_LWM2M_DEVICE_BINDINGS "UQS"
247 #define CONFIG_LWM2M_DEVICE_BINDINGS "U"
lwm2m_device_resources
Resources of the LwM2M device object instance.
lwm2m_object_t * lwm2m_object_device_init(lwm2m_client_data_t *client_data)
Initialize the Device object.
lwm2m_device_error_codes
Error codes for the Error resource in the device object of LwM2M.
bool lwm2m_device_reboot_requested(void)
Determines if a reboot request has been issued to the device by a server.
@ LWM2M_RES_HW_VERSION
Current hardware version of the device.
@ LWM2M_DEVICE_RESOURCES
Number of resources.
@ LWM2M_RES_REBOOT
Reboot the device.
@ LWM2M_RES_ERROR_CODE
Last error code.
@ LWM2M_RES_BINDINGS
Indicates supported bindings and modes on the client.
@ LWM2M_RES_EXT_DEV_INFO
External device object instance.
@ LWM2M_RES_FW_VER
Current firmware version of the device.
@ LWM2M_RES_SERIAL
Serial number.
@ LWM2M_RES_TIME_ZONE
Indicates the time zone of the device.
@ LWM2M_RES_POWER_SRC
Available power sources.
@ LWM2M_RES_MEM_TOTAL
Total amount of storage space in the device (kB.
@ LWM2M_RES_SW_VERSION
Current software version on the device.
@ LWM2M_RES_TYPE
Type of device.
@ LWM2M_RES_POWER_VOL
Present voltage for each power source.
@ LWM2M_RES_BATTERY_STATUS
Battery status when internal battery is present.
@ LWM2M_RES_TIME_OFFSET
Indicated the UTC offset for the device.
@ LWM2M_RES_FRESET
Perform a factory reset of the device.
@ LWM2M_RES_POWER_AMP
Present current for each power source.
@ LWM2M_RES_MEM_FREE
Estimated current available storage (kB)
@ LWM2M_RES_MANUFACTURER
Human readable manufacturer name.
@ LWM2M_RES_MODEL_NO
Model identifier (manufacturer specified string)
@ LWM2M_RES_TIME
Current UNIX time of the client.
@ LWM2M_RES_ERROR_CODE_RESET
Delete all error code instances.
@ LWM2M_RES_BATTERY_LEVEL
Current battery level as a percentage.
@ LWM2M_DEVICE_ERR_NO_ERR
No error.
@ LWM2M_DEVICE_ERR_SMS_ERR
SMS failure.
@ LWM2M_DEVICE_ERR_LOW_SIGNAL
Low received signal strength.
@ LWM2M_DEVICE_ERR_NO_MEM
Out of memory.
@ LWM2M_DEVICE_ERR_EXT_OFF
External power supply off.
@ LWM2M_DEVICE_ERR_GPS_ERR
GPS module failure.
@ LWM2M_DEVICE_ERR_IP_ERR
IP connectivity failure.
@ LWM2M_DEVICE_ERR_LOW_BATT
Low battery power.
@ LWM2M_DEVICE_ERR_PERIPH_ERR
Peripheral malfunction.
Definitions and public API for a LwM2M client using Wakaama.
LwM2M client configurations.