Connect to The Things Network

In this turorial we will setup a Sodaq One with The Things Network (TTN) and publish the data on the cayenne dashboard from mydevices.

Create and/or login to your TTN account

Make an account on TTN, follow the steps on:
https://console.thethingsnetwork.org/

Login and go to the dashboard.
Schermafbeelding 2016-08-31 om 10.10.03

Create application

Application ID, a name or number to identify your application.
Within this application you can add your device.
For example: sodaq-one-trackers
Schermafbeelding 2016-08-31 om 10.10.22


Register device

Schermafbeelding 2016-08-31 om 10.10.42
Disconnect any power source connected to the SODAQ ONE.
Connect it to your pc over usb.
Open a serial monitor within 30 seconds.
If you don’t see any data within 2 seconds, press Enter.
Type the command: “EUI” and press Enter
tracker_menu

Copy the DevEUI to the website, and press Register.

Schermafbeelding 2016-08-31 om 10.11.24

Copy the App EUI and App key to the SODAQ one.
And change OTAA to 1 (otaa=1)

Schermafbeelding 2016-08-31 om 10.14.51

Your device is now sending data to the Things Network

To learn more how to get the data from The Things Network:
https://www.thethingsnetwork.org/wiki/Backend/Connect/Application