lora.device.downlink
The lora.device.downlink command is used to send a message from an Application to a LoRa device.
TR50 Request
{
"1":{
"command":"lora.device.downlink",
"params":{
"thingId":"500000000000000000000001",
"validity":1,
"fPort":2,
"confirmable": true,
"serialize": true,
"retries": 3
"payload": "0ab1c2d3e3f5"
}
}
}
Request Parameters
Name | Type | Required | Description |
---|---|---|---|
deviceEui | String | Yes* | The value of the deviceEui field of the LoRa device. |
thingId | String | The ID of the Thing that is related to the LoRa device. | |
thingKey | String | The thingKey of the device. | |
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. | |||
validity | Integer | The validity duration in seconds. | |
fPort | Integer | Yes | The target port of the message. |
confirmable | Boolean | If true, indicates to send a downlink reception confirmation. | |
serialize | Boolean | If set to true:
|
|
retries | Integer | The number of retries attempted before aborting the downlink. The default is four and the maximum number of retries possible is ten. | |
payload | String | Yes | The hex encoded string message to send to the device. |
TR50 Response
If the command is sent successfully a success message is returned. Otherwise, an error and error message will be returned.
{
"1" {
"success": true
}
}