The Things Stack keeps a queue of downlink messages per device. Applications can keep pushing downlink messages or replace the queue with a list of downlink messages.
You can schedule downlink using the CLI, MQTT or HTTP webhooks.
This guide shows how to interact with the downlink queue from the command-line interface (CLI).
Command-line interface only
The instructions below use the command-line interface (CLI).
If there are more application downlink messages in the queue, the Network Server sets the LoRaWAN
FPending bit to indicate end devices that there is more downlink available. In class A downlink, this typically triggers the device to send an uplink message to receive the downlink message. In class C, the Network Server automatically transmits all queued downlink messages.
Push and replace downlink queue
To push downlink to the end of the queue:
$ ttn-lw-cli end-devices downlink push app1 dev1 \ --frm-payload 01020304 \ --priority NORMAL
You can pass an
--f-port, and confirmed downlink with
To replace the existing queue with a new item:
$ ttn-lw-cli end-devices downlink replace app1 dev1 \ --frm-payload 01020304 \ --priority NORMAL
To see currently scheduled downlink messages:
$ ttn-lw-cli end-devices downlink list app1 dev1
To clear scheduled downlink messages:
$ ttn-lw-cli end-devices downlink clear app1 dev1