Connect NB-IoT via LwM2M to AllThingsTalk IoT Platform
Lightweight M2M (LwM2M) is a protocol for IoT and M2M device management and service enablement. The LwM2M standard defines the application layer communication protocol between an LwM2M Server and an LwM2M Client which is located in an IoT device. It offers an approach for managing IoT devices and allows devices and systems from different vendors to co-exist in an IoT ecosystem.
Being specifically optimized for constrained NB-IoT devices, it uses CoAP (Constrained Application Protocol) to provides efficient, low-power, and secure management—including Firmware Over-the-Air (FOTA) updates and telemetry—tailored for narrow-band networks.
LwM2M support is currently in BETA testing and available only on ALSO IoT Platform
Configure device to send data to AllThingsTalk LwM2M server
Configure your device:
LwM2M server: coaps://also.allthingstalk.io:5684
Make sure that your device is configured to use LwM2M to send uplink data to the server
Create a device in your ground
In AllThingsTalk (ALSO IoT Platform), go to your ground and create a new device
You can use an existing device type or create a custom device
If you’re using custom device, you’ll need to create assets manually; make sure to use proper LwM2M objects naming, and replace / with _, e.g:
In LwM2M temperature sensor is represented by /3303/0/5700 object
To replicate this in the platform, create a numerical sensor asset, and set asset name to _3303_0_5700
Connect ground device to LwM2M network
Go to your device > SETTINGS > Connectivity
Select LwM2M from the dropdown menu
Add device credentials (check your device docs for proper format):
Endpoint: urn:imei:1116622534771 (example)
Identity: urn:imei:1116622534771 (example)
PSK: 14452AB766622BC65653 (example)
Connect the device
See your data land in the platform
As soon as your device registers on the LwM2M server, the data should land in your assets
You can also check Debug tab to see full payloads being sent and how they are parsed