Skip to content

Latest commit

 

History

History
38 lines (21 loc) · 1.53 KB

File metadata and controls

38 lines (21 loc) · 1.53 KB

1NCE Arduino blueprint - LwM2M Demo

Overview

1NCE Arduino LwM2M Demo allows customers to communicate with 1NCE endpoints via LwM2M Protocol.

LwM2M Actions can be tested using the Action API. For example:

  • To get the firmare update object info, send a read action to object /5.

Configuration options

The configuration options for LwM2M sample are:

NCE_ICCID the ICCID of 1NCE SIM Card.

LWM2M_ENDPOINT is set to 1NCE endpoint.

DTLS is enabled by default. To use DTLS, bootstraping PSK should be defined in LWM2M_BOOTSTRAP_PSK. It can be configured while testing the LwM2M integration (From the Device integrator), or from the API Create Pre-Shared Device Key.

Unsecure LwM2M Communication

To test unsecure communication, disable the device authenticator by removing the following definition from nce_demo_config.h

#define LwM2M_ENABLE_DTLS

Device Controller:

The LwM2M Actions can be tested using the Action API, and the available objects include:

  • Light Control (Object ID: 3311): This object allows you to control LEDs.
    • To turn on the LED, set /3311/0/5850 to true.

    • For devices like Arduino Protenta, you can change the LED color by writing a hexadecimal value (RRGGBB) to /3311/0/5706.

      For example, set FF0000 for a bright red color.