Gateways / Nginx modules

LwM2M gateway

Configure the selected LwM2M registration and telemetry profile over a trusted CoAP boundary.

Selected LwM2M 1.2 registration and telemetry profile

The LwM2M gateway supports a deliberately selected device-registration profile rather than a general device-management server.

Server configuration

stream {
  server {
    listen 5684 udp;
    iot_gateway_lwm2m on;
    iot_gateway_lwm2m_max_datagram 65536;
    iot_gateway_lwm2m_identity tenant-a gateway-a;
    iot_gateway_lwm2m_security dtls_terminated;
    iot_gateway_lwm2m_iotd_ring /nginz-iot-edge 4096 1024 1 1;
  }
}

The dtls_terminated setting describes a separately configured trusted gateway that terminates DTLS and authenticates devices. Restrict the plaintext UDP listener to that gateway. Keep DTLS keys and peer authentication at the gateway.

Selected profile

Implemented behavior includes bootstrap, registration/update/deregister, Send, selected Device/Connectivity/Firmware notifications, Observe sequence metadata, queue mode, duplicate suppression, and restart recovery.

This is not a complete Read/Write/Execute server, arbitrary object-model manager, or end-to-end firmware package system. The selected 1.2 profile is a Max and Enterprise gateway.