Skip to content

LWM2M with DTLS

Joakim Eriksson edited this page Sep 29, 2017 · 3 revisions

Compiling with DTLS support

In the examples/oma-lwm2m/standalone directory, built the lwm2m-example by:

 >make TRANSPORT=ipv4 MAKE_WITH_DTLS=1

This will enable DTLS by linking with the tiny-dtls library.

Setting keys

Setting the identity and the keys is done in the transport implementation. For example in the coap-ipv4.c file:

  #define PSK_DEFAULT_IDENTITY "Client_identity"  
  #define PSK_DEFAULT_KEY      "secretPSK"

These are the default values.

...

Clone this wiki locally