I am interesting on sending a message back to my motes, so the downlink; I was wondering how the TTN handlers know what port to use in order to perform such as action, or if it is not the responsible for such an action who is and how does that.
![](TTN handlers)](http://staging.thethingsnetwork.org/wiki/forum/uploads/TTN-Backend-Components.png)
I am interesting on knowing it since if I have my own application (A) connected to the Handler, I would be interested to see the format in which I should push that data, wiki says that it is like below
This port is the FPort of LoRaWAN. You will be able to set this in the MQTT payload, but this is not implemented yet, and the backend will always use FPort 1.
Just push it to the correct device topic: <AppEUI>/devices/<DevEUI>/down.
Downlink works for staging. Check the wiki for documentation. It will not work for the old API and will not be implemented, the old API is scheduled to be retired soon.
BTW, don’t ask the same question in multiple threads.