This page describes how to add a LWM2M device, with and without security (PSK) enabled.
Without security
To add a lwm2m device without security, use this body in the add request:
HTTP request | value |
---|---|
headers | Same as parent "add request" |
body (JSON) | {'serialNumber': '', 'groupName': '', 'protocol': 'LWM2M', 'additionalParams': {}, 'address': '', 'identifier': ''} |
With PSK security
HTTP request | value |
---|---|
headers | Same as parent "add request" |
body (JSON) | { "additionalParams":{ "secMode": "PSK", "pskIdentity": "", "psk: "<YOUR PSK KEY IN BASE 64>" }, "groupName": "", "protocol": "LWM2M", "serialNumber": "", "identifier":"" } |