lwm2m.device.raw.send
The lwm2m.device.raw.send command is used to send raw CoAP packets to a device.
TR50 Request
{
"1":{
"command":"lwm2m.device.raw.send",
"params":{
"key":"mylwm2mthingkey",
"uri":"coap://host.tld:5683/path?parameterkey=value",
"method":"lwm2mmethod",
"payload":"0123456789abcdef",
"payloadHex":"111100001100",
"encoding":0
}
}
}
Request Parameters
Name | Type | Required | Description |
---|---|---|---|
id | String | Yes* | The id of the device. |
thingId | String | The id of the Thing. | |
thingKey | String | The thingKey of the Thing. | |
esn | String | The ESN of the device. | |
iccid | String | The ICCID of the device. | |
imei | String | The IMEI of the device. | |
imsi | String | The IMSI of the device. | |
meid | String | The MEID of the device. | |
msisdn | String | The MSISDN of the device. | |
*One of the above fields must be used to identify the device. | |||
uri | String | Yes | The URI. |
method | String | Yes | The method the Thing should execute. |
payload | String | Yes+ | The payload in string format. |
payloadHex | String | The method payload in hexadecimal string format. | |
+One of the above fields is required. | |||
encoding | Integer |
Message containing data must specify the payload encoding by using one of the supported data format. For more information on encoding, see Navigating Object browser. |
If the command is sent successfully a success message and the selected value to read is returned. Otherwise, an error and error message will be returned.
TR50 Response
{
"1":{
"success":true,
"params":{
"payload":"Method response"
}
}
}
Response Parameters
Name | Type | Description |
---|---|---|
payload | String | The string representation of value returned by the method. |