Skip to main content
Version: TAO v1.x

HTTP Usage

This section explain how you can use the internal HTTP server to send downlink packets.

The different downlink delivery failure causes are described here (search for DeliveryFailedCause in the DevEUI_downlink_Sent report).

Default URL is: http://<box ip>:1323/node-red/downlink

You may send downlink raw encoded packets using the "HTTP INPUT POST" node (using payload_hex):

 curl  -X POST -d '{"DevEUI_downlink":{"DevEUI":"20635F0106000324","FPort":"2","payload_hex": "0102"}}'  -H 'Content-Type: application/json' http://<box ip>:1323/node-red/downlink
{"response":"queued","payload":{"DevEUI_downlink":{"DevEUI":"20635F0106000324","FPort":"2","payload_hex":"0102"}}}

Instead of sending raw encoded payloads, you may send decoded downlink packets (using payload) and rely on the ThingPark Enterprise All-in-One encoding functions. This option is only available for branded devices having built-in payload drivers.

 curl -X POST -d '{"DevEUI_downlink":{"DevEUI":"20635F0106000324","FPort":"2","payload":{"downMessageType":"REQUEST_CONFIG","ackToken":1},"Confirmed":"1","FlushDownlinkQueue":"1","DriverCfg":{"app":{"pId":"abeeway","mId":"asset-tracker","ver":"2"}}}}'  -H 'Content-Type: application/json' http://<box ip>:1323/node-red/downlink
{"response":"queued","payload":{"DevEUI_downlink":{"DevEUI":"20635F0106000324","FPort":"2","payload":{"downMessageType":"REQUEST_CONFIG","ackToken":1},"Confirmed":"1","FlushDownlinkQueue":"1","DriverCfg":{"app":{"pId":"abeeway","mId":"asset-tracker","ver":"2"}}}}}