eu1.cloud.thethings.network
1700
1700
URL_OF_YOUR_SERVER
(ie: xxxxx.master-tic.fr)1700
1700
eu1.loriot.io
1780
1780
Gateway Bridget needs to be set up first.
ssl://eu868.mqtt.loracloud.com:8883
This address need to be configure in chirpstack-gateway-bridge (MQTT client)
You can find the documentation here : https://www.thethingsindustries.com/docs/integrations/webhooks/scheduling-downlinks/
Example to send vu8=
(Base 64) data on port 15
.
curl --location \
--header 'Authorization: Bearer <API TOKEN>' \
--header 'Content-Type: application/json' \
--header 'User-Agent: my-integration/my-integration-version' \
--request POST \
--data '{"downlinks":[{
"frm_payload":"vu8=",
"f_port":15,
"priority":"NORMAL"
}]
}' \ 'https://thethings.example.com/api/v3/as/applications/app1/webhooks/wh1/devices/dev1/down/push'
The following modifications must be done :
https://thethings.example.com
by your Network Server address (https://eu1.cloud.thethings.network
or the URL_OF_YOUR_SERVER
)app1
by your application name
.wh1
by your webhook name
.dev1
by your Device name.
<API TOKEN>
by your API Key
generated in TTN > Application > your-application > API Key > Add API KeyYou can find the documentation here : https://www.chirpstack.io/application-server/api/http-examples/
Example to send aGVsbG8=
(Base 64) data on port 10
.
curl -X POST \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Grpc-Metadata-Authorization: Bearer <API TOKEN>' -d '{ \
"deviceQueueItem": { \
"confirmed": false, \
"data": "aGVsbG8=", \
"fPort": 10 \
} \
}' 'http://localhost:8080/api/devices/0101010101010101/queue'
The following modifications must be done :
<API TOKEN>
your API Key
generated in ChirpStack > API Key > Create API Key.URL_OF_YOUR_SERVER
)0101010101010101
by your DevEUI
.You can find the documentation here : https://docs.loriot.io/display/LNS/Send+Downlinks+via+API
Example to send 0x0ffff0
(Base 16) data on port 33
.
curl --location --request POST 'https://eu1.loriot.io/1/rest' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API TOKEN>' \
--header 'Content-Type: text/plain' \
--data-raw '{
"cmd": "tx",
"EUI": "BE7A000000000009",
"port": 33,
"confirmed": false,
"data": "0ffff0",
"appid": "BE01000D"
}'
The following modifications must be done :
<API TOKEN>
by your API Key generated in LORIOT > Application > Access Token > Generate authentication token.BE7A000000000009
by your DevEUI
.appid
by your Application ID
.You can find the documentation here : https://www.thethingsindustries.com/docs/integrations/mqtt/
The LoRaWAN Server is the Broker. You have to configure your MQTT client as follow :
eu1.cloud.thethings.network:1883
or URL_OF_YOUR_SERVER:1883
Your application id
( and add @ttn if you use TTN v3)v3/+/devices/+/up
v3/{application id}/devices/{device id}/up
Replace {application id}
by your Application id
( and add @ttn
if you use TTN v3).
Replace {device id}
by your Device name
.
You can find the documentation here : https://www.thethingsindustries.com/docs/integrations/mqtt/
Example to send aGVsbG8=
(Base 64) data on port 15
. The LoRaWAN Server is the Broker. You have to configure your MQTT client as follow :
eu1.cloud.thethings.network:1883
Your application id
( and add @ttn if you use TTN v3)v3/{application id}/devices/{device id}/down/replace
Replace {application id}
by your Application id
( and add @ttn
if you use TTN v3).
Replace {device id}
by your Device id
.
{
"downlinks": [{
"f_port": 15,
"frm_payload": "aGVsbG8=",
"priority": "NORMAL"
}]
}
You can find the documentation here : https://www.chirpstack.io/application-server/integrations/mqtt/
The LoRaWAN Server is the Broker. You have to configure your MQTT client as follow :
application/+/device/+/event/up
application/[applicationID]/device/[devEUI]/event/up
Replace [applicationID]
by your Application ID
(it's a number, not a name !).
Replace [devEUI]
by your DevEUI
(in lower case letters !).
You can find the documentation here : https://www.chirpstack.io/application-server/integrations/mqtt/
Example to send aGVsbG8=
(Base 64) data on port 15
. The LoRaWAN Server is the Broker. You have to configure your MQTT client as follow :
application/[applicationID]/device/[devEUI]/command/down
Replace [applicationID]
by your Application ID
(it's a number, not a name !).
Replace [devEUI]
by your DevEUI
(in lower case letters !).
{
"confirmed": false,
"fPort": 10,
"data": "aGVsbG8="
}
?
Example to send 01020304
(Base 16) data on port 15
. The LoRaWAN Server is an MQTT Client and must be connected to an external Broker (ie : Mosquitto, HiveMQ...). You have to configure the MQTT clients as follow :
mqtt/things/[devEUI]/downlink
Replace [devEUI]
by your DevEUI
{
"DevEUI_downlink": {
"DevEUI": "Your-Device-EUI",
"FPort": "1",
"payload_hex": "01020304"
}
}
Example to send 01020304
(Base 16) data on port 15
. The LoRaWAN Server is an MQTT Client and must be connected to an external Broker (ie : Mosquitto, HiveMQ...). We have to configure the MQTT clients as follow :
mqtt/things/[devEUI]/downlink
Replace [devEUI]
by the DevEUI
of the Multicast group
The Gateway used, the RX2 frequency and the DR needs to be specified in the Multicast groups on Actility.
{
"DevEUI_downlink": {
"DevEUI": "Your-Device-EUI",
"FPort": "1",
"payload_hex": "01020304"
}
}
Example to send AQ==
(Base 64) data on port 15
. The LoRaWAN Server is the Broker. You have to configure your MQTT client as follow :
eu1.cloud.thethings.network:1883
Your application id
( and add @ttn if you use TTN v3)v3/{application id}/devices/{device id}/down/replace
Replace {application id}
by your Application id
( and add @ttn
if you use TTN v3).
Replace {device id}
by your Multicast id
.
{
"downlinks": [
{
"f_port": 15,
"frm_payload": "AQ==",
"priority": "NORMAL",
"class_b_c": {
"gateways": [
{
"gateway_ids": {
"gateway_id": "YOUR_GATEWAY_ID"
}
}
]
}
}
]
}
Replace YOUR_GATEWAY_ID
by your your Gateway id
in TTN.