The Things Network
Connect a TTN application to HydroNode. Uplinks of your devices arrive through a webhook, and HydroNode can send downlinks back through the same webhook.
Register the device in TTN
- 1Open your applicationOpen console.thethings.network and select your application.
- 2Add the end deviceOpen End devices and press Add end device. Enter the JoinEUI, the DevEUI and the AppKey from the device firmware.
- 3Note the IDsComplete the registration and note the DevEUI and the Application ID.
Link the device to your sensor
Create a sensor, indoor or outdoor, or use an existing one. Open its Settings, then Connection. In the LoRaWAN group, enter the DevEUI and your TTN application ID as Application ID, and press Link device. The full steps are in Bind in HydroNode.
Then add a layout for each fPort under Payload formats (fPort) on the same page, see Decode payloads. Without a layout, HydroNode rejects the uplinks of that fPort.
Send uplinks from TTN to HydroNode
One webhook per TTN application forwards the messages of all devices in it. HydroNode keeps the uplinks of devices you linked and rejects the others.
- 1Copy your webhook addressOpen Operations › Interfaces in HydroNode, pick your LoRaWAN interface and open Access. Press the eye icon next to Webhook URL to reveal it, or copy it right away with the copy button. The same address is shown as Webhook address in the Connection settings of a linked sensor. It contains your secret token, so keep it private.
- 2Add a custom webhookIn the TTN Console, open your application. Open Integrations, then Webhooks, press Add webhook and choose Custom webhook.
- 3Fill in the formEnter a Webhook ID such as hydronode. Set Webhook format to JSON and paste your address into Base URL. HydroNode needs no extra headers.
- 4Pick the messagesTurn on Uplink message and Join accept, so joins show up in the device console. To send downlinks later, also turn on Downlink sent, Downlink ack, Downlink nack and Downlink failed. Leave every path field empty, so each message goes to your address unchanged.
- 5Save the webhookPress Save changes. TTN now sends every message of this application to HydroNode.
See the first uplink arrive
In TTN, send a test uplink with Simulate uplink on the page of the device, or wait for a real one. Then open the sensor in HydroNode and open its console: click the Console bar at the bottom of the page or press the backtick key. The Live tab shows every uplink as it arrives, with fPort, frame counter, decoded values and the result. Joins show up there too, because you turned on Join accept.
| Result | Meaning | What to do |
|---|---|---|
| 202 | The values are stored. | Nothing. The device is connected. |
| 400 no fPort configuration | There is no payload layout for this fPort. | Add the layout under Settings, Connection, Payload formats (fPort). |
| 401 | The token in the address is not valid. | Copy the Webhook URL again. After a new token, update it in your network server. |
| 202 | No sensor in your account has this DevEUI yet. | It shows under Discovered of the interface and greyed in your sensor lists. Press Add, or link the DevEUI under Settings, Connection. |
More about the console: Device Console.
Let HydroNode send through TTN
Once your webhook has a downlink API key, TTN sends that key along with every message. HydroNode keeps it and uses it to queue downlinks for your devices. You never paste the key into HydroNode. Downlinks of your LoRaWAN interface walks you through three steps: Get the downlink key, Test and Turn on.
- 1Allow the key in HydroNodeOpen Operations › Interfaces, pick the LoRaWAN interface the devices send through and open Downlinks. Choose The Things Network and press Allow TTN key. HydroNode only keeps a key from TTN after you allowed it.
- 2Create an API key in TTNIn the TTN Console, open your application and then API keys, and press Add API key. Give it a name, choose Grant individual rights and tick Write downlink application traffic. Create the key and copy it, because TTN shows it only once.
- 3Add the key to your webhookOpen Integrations, then Webhooks, and pick your HydroNode webhook. Paste the key into Downlink API key and press Save changes. Make sure the four downlink messages from the webhook setup are turned on.
- 4Wait for the next uplinkThe key arrives with the next uplink of any device in this application. Until then the interface shows Waiting for the next uplink. Press Check now to look again. Once it is there, the step shows Key received.
- 5Test and turn onUnder Test, press Test. It checks that the key from TTN arrived. When it shows Passed, turn on the switch Send downlinks through TTN under Turn on.
What you can send and how to follow it: Downlinks.
What TTN sends
{
"end_device_ids": {
"dev_eui": "a840411b2182cd44",
"application_ids": {
"application_id": "my-app"
}
},
"uplink_message": {
"f_port": 1,
"f_cnt": 9846,
"frm_payload": "AQH0AgBk",
"rx_metadata": [
{ "rssi": -85, "snr": 7.2 }
],
"received_at": "2026-07-21T11:24:34.027Z"
},
"received_at": "2026-07-21T11:24:39.500Z"
} HydroNode recognizes a TTN message by end_device_ids.



