The Things Network is a global, community-driven LoRa network. We at EVRYTHNG are delighted to have an official partnership of The Things Network and be part of this vibrant community. Through the The Thing Network integration, developers can connect LoRa devices to the EVRYTHNG Platform. From there, property updates created by the device can be viewed in the EVRYTHNG Dashboard.
This integration walkthrough will guide you through the process of setting up the integration with a LoRa device on The Things Network. At the end, you will have a fully functional integration set up and ready for you to build on top of.
The first step is to create resources in the EVRYTHNG Platform to represent various parts of the integration and device model.
Go the the EVRYTHNG Dashboard and sign up for an account if you have not already done so.
Create a new project using the ⨁ button next to ‘Projects’. Give it a suitable name and description as appropriate.
Create new application within the project you just created via the ‘Applications’ section which is made visible with the project selected.
Optionally, create product resource for the LoRa device you’ll be connecting to The Things Network to describe its SKU via the ‘Products’ section.
Create a Thng resource to represent the actual physical device itself. This is the main component of the integration and will contain the data sent from the device on The Things Network.
With the EVRYTHNG resources in place, do the following configuration of The Things Network. Begin by creating an account on The Things Network portal. Go to the TTN console and add a new application. Configure the application as follows.
Set payload format to ‘Cayenne LPP’.
Go to ‘Add integration’ and select the EVRYTHNG integration tile.
then follow the instructions:
It's that easy. Thanks TTN!
Inside the application, select ‘Register device’. If in the integration URL the
create flag is
false, you’ll need to copy the Device EUI. You will need this value to connect the LoRa device to its Thng in the EVRYTHNG platform.
Go to the ‘Settings’ tab, and set ‘Activation Method’ to ‘OTAA’.
Go back to the ‘Overview’ tab, and copy the Device EUI, Application EUI, App Key, Network Session Key, App Session Key to your device source code.
You’ll find an example for the Sodaq Explorer here.
The link between a device in The Things Network and its corresponding Thng in the EVRYTHNG platform is with the
ttnDeviceEUI identifier. If the integration in The Things Network has the
create flag set to
false, this must be set manually.
If the device is successfully connected to The Things Network and the integration is configured correctly, the Thng will have its properties automatically created and updated. Some example property updates are shown below.
Updated 3 years ago