EVRYTHNG Developer Hub

Welcome! Here's where you'll find what you need to start working with EVRYTHNG as quickly as possible. There are comprehensive guides, documentation, and support if you get stuck. We encourage you to dive in and explore.

Create Free Account Read Documentation

The Things Network

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.

Creating EVRYTHNG Resources

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.

Creating The Things Network Resources

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.

Use the ttn-handler-eu handler.

Set payload format to ‘Cayenne LPP’.

Select ‘Add integration’. The TTN -> EVRYTHNG integration expects the following items in the string query of the application URL. (An example is shown below):

  • access_token - A Trusted App API Key. Get this from the EVRYTHNG application resource page in the EVRYTHNG Dashboard

  • env - The EVRYTHNG platform region. Can be Europe (eu) or USA (us).

  • create - A boolean flag is used to provision a Thng if you have not already done so. true will create a new Thng for a device if it doesn't, false means a Thng must be manually created and mapped to the device.

The image below shows an example application URL https://thethingsnetwork.evrythng.com/v1?env=us&create=false&access_token=TRUSTED_APP_API_KEY

Connecting a LoRa device to The Things Network

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.

Mapping a TTN Device to an EVRYTHNG Thng

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.

The Things Network