The Things Network API
Data needs to flow back to your device.
Now that you know what device configurations are, you need to know how to send them to The Things Network so they can be queued and sent to your device.
Thankfully, we made it as easy as filling in some information in your device's edit page on the AgriFlow Dashboard, notably the provider API Token, application ID, device ID and webhook ID.
To get those values, head over to The Things Network and go to "API keys".

Click on "+ Add API key" to create an API key. Give it a name, leave the date empty, and select "Grant individual rights" and "Write downlink application traffic". You will be given a view-once API key which you need to copy then paste into the "Provider API Token" input in the AgriFlow Dashboard.
Then, head over to the "Applications" tab and click on your application.

Copy the "Application ID" field then paste it in the "Provider Application ID" input in the AgriFlow Dashboard.
Then, go to "End devices", then click on your end device.
Copy the "End device ID" and paste it in the "Provider Device ID" input in the AgriFlow Dashboard.
Last but not least go to to "Integrations > Webhooks" and select your webhook.

Copy the "Webhook ID" and paste it in the "Provider Webhook ID" input in the AgriFlow Dashboard.
That's it for the connection! You can save the new configurations of your device.
Last updated