LWM2M

LWM2M simulator is an enterprise only feature currently limited in preview.

circle-info

LWM2M is currently in a preview only mode for Enterprise. Please contact us to get a demo.

Lightweight Machine to Machinearrow-up-right specification is based on CoAP and is developed by the Open Mobile Alliancearrow-up-right for the Internet of Things. The advantage of LWM2M over others is that it runs on UDP/DTLS and could even use SMS in some constrained cases. The underlying protocol for LWM2M is the Constrained Application Protocolarrow-up-right (CoAP).

Currently the LWM2M client settings are minimalist. The client will automatically try to register to the provided server. In order to use the LWM2M client, you must build a smartobject in your state variable in device initialization. An example of a LWM2M device initialization code is

Above Function will initiate two resource objects for your device. The server could read/write and observe to these resources and the handlers will be invoked.

The message sending functions are also a little different in case of LWM2M

A JSON object must be returned in stringified form, indicating the next action to be performed.

Last updated

Was this helpful?