Configuration options for the LwM2M client implementation based on the Wakaama package. More...

Detailed Description

Configuration options for the LwM2M client implementation based on the Wakaama package.

Files

file  lwm2m_client_config.h
 LwM2M client configurations.
 

Macros

#define LWM2M_STANDARD_PORT   "5683"
 CoAP default port of the LwM2M server.
 
#define LWM2M_DTLS_PORT   "5684"
 CoAPS default port of the LwM2M server.
 
#define LWM2M_BSSERVER_PORT   "5685"
 CoAP default port of the LwM2M bootstrap server.
 
#define LWM2M_LOCAL_PORT   "5683"
 Default port for the local LwM2M instance.
 
#define LWM2M_DEVICE_NAME   "testRIOTDevice"
 Device name used to register at the LwM2M server.
 
#define LWM2M_DEVICE_TTL   300
 Lifetime of the device object on the LwM2M server.
 
#define LWM2M_SERVER_URI   "coap://[fd00:dead:beef::1]"
 LwM2M server URI to register/bootstrap with. More...
 
#define LWM2M_SERVER_ID   10
 Numeric ID of LWM2M_SERVER_URI.
 
#define LWM2M_ALT_PATH   NULL
 Alternate path to place LwM2M resources.
 
#define LWM2M_BOOTSTRAP
 Define to 1 to specify that LWM2M_SERVER_URI is a bootstrap server. More...
 
#define LWM2M_DEVICE_MANUFACTURER   "A RIOT maker"
 Device object manufacturer string.
 
#define LWM2M_DEVICE_MODEL   RIOT_BOARD
 Device object model. More...
 
#define LWM2M_DEVICE_SERIAL   "undefined"
 Device object serial number.
 
#define LWM2M_DEVICE_FW_VERSION   RIOT_VERSION
 Device object firmware version. More...
 
#define LWM2M_DEVICE_BINDINGS   "U"
 Device object binding and queue mode. More...
 
#define LWM2M_DEVICE_TYPE   "RIOT device"
 Device object device type.
 
#define LWM2M_DEVICE_HW_VERSION   RIOT_BOARD
 Device object hardware version. More...
 
#define LWM2M_DEVICE_SW_VERSION   RIOT_VERSION
 Device object software version. More...
 

Macro Definition Documentation

◆ LWM2M_BOOTSTRAP

#define LWM2M_BOOTSTRAP

Define to 1 to specify that LWM2M_SERVER_URI is a bootstrap server.

To define just add it to your CFLAGS in your application's Makefile:

CFLAGS += -DLWM2M_BOOTSTRAP=1

Definition at line 110 of file lwm2m_client_config.h.

◆ LWM2M_DEVICE_BINDINGS

#define LWM2M_DEVICE_BINDINGS   "U"

Device object binding and queue mode.

Valid values are:

  • U: UDP
  • UQ: UDP with Queue mode
  • S: SMS
  • SQ: SMS with Queue mode
  • US: UDP and SMS
  • UQS: UDP with Queue mode and SMS

Definition at line 157 of file lwm2m_client_config.h.

◆ LWM2M_DEVICE_FW_VERSION

#define LWM2M_DEVICE_FW_VERSION   RIOT_VERSION

Device object firmware version.

Note
Defaults to the running RIOT version

Definition at line 142 of file lwm2m_client_config.h.

◆ LWM2M_DEVICE_HW_VERSION

#define LWM2M_DEVICE_HW_VERSION   RIOT_BOARD

Device object hardware version.

Note
Defaults to the board name

Definition at line 173 of file lwm2m_client_config.h.

◆ LWM2M_DEVICE_MODEL

#define LWM2M_DEVICE_MODEL   RIOT_BOARD

Device object model.

Note
Defaults to the board name

Definition at line 126 of file lwm2m_client_config.h.

◆ LWM2M_DEVICE_SW_VERSION

#define LWM2M_DEVICE_SW_VERSION   RIOT_VERSION

Device object software version.

Note
Defaults to the running RIOT version

Definition at line 182 of file lwm2m_client_config.h.

◆ LWM2M_SERVER_URI

#define LWM2M_SERVER_URI   "coap://[fd00:dead:beef::1]"

LwM2M server URI to register/bootstrap with.

Note
The host part of the URI MUST be a valid IPv6 address. Host names can not be resolved at this time.

Definition at line 83 of file lwm2m_client_config.h.