Demonstration TTN OTAA node
Dependencies: BME280 DS1820 libmDot mbed-rtos mbed
This is an example application for the MultiTech mDot and connects to The Things Network using Over The Air Activation (OTAA). It sends data from a Dallas Semiconductors DS18B20 OneWire temperature sensor.
Register a device and generate a random AppKey for the currently used application Id: (You need to use your own device IDs, the ones shown here are examples only)
./ttnctl devices register 0080000000000000 INFO Generating random AppKey... INFO Registered device AppKey=000102030405060708090A0B0C0D0E0F DevEUI=0080000000000000
or to specify the same AppKey for a new device or to reregister the same device again:
./ttnctl devices register 0080000000000000 000102030405060708090A0B0C0D0E0F
./ttnctl devices info 0080000000000000 Dynamic device:
AppEUI: 70B3D50000000000 {0x70, 0xB3, 0xD5, 0x00, 0x00, 0x00, 0x00, 0x00}
DevEUI: 0080000000000000 {0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
AppKey: 000102030405060708090A0B0C0D0E0F {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F}
Copy the AppEUI and AppKey values provided in hex array notation above to the AppEUI and AppKey parameters below.
History
updated comments
2016-05-11, by SomeRandomBloke [Wed, 11 May 2016 06:26:11 +0000] rev 15
updated comments
Testing DS18B20
2016-05-11, by SomeRandomBloke [Wed, 11 May 2016 06:19:55 +0000] rev 14
Testing DS18B20
testing DS18B20
2016-05-11, by SomeRandomBloke [Wed, 11 May 2016 06:18:15 +0000] rev 13
testing DS18B20
Example released
2015-11-14, by SomeRandomBloke [Sat, 14 Nov 2015 20:58:36 +0000] rev 12
Example released
tweeks
2015-11-14, by SomeRandomBloke [Sat, 14 Nov 2015 20:54:36 +0000] rev 11
tweeks
Release version
2015-11-14, by SomeRandomBloke [Sat, 14 Nov 2015 20:17:03 +0000] rev 10
Release version
Preparation for release
2015-11-14, by SomeRandomBloke [Sat, 14 Nov 2015 20:15:20 +0000] rev 9
Preparation for release
increased time interval to 10 mins
2015-11-10, by SomeRandomBloke [Tue, 10 Nov 2015 21:46:38 +0000] rev 8
increased time interval to 10 mins
Removed ack
2015-10-28, by SomeRandomBloke [Wed, 28 Oct 2015 11:06:03 +0000] rev 7
Removed ack
Updates to Node address values
2015-10-21, by SomeRandomBloke [Wed, 21 Oct 2015 23:12:33 +0000] rev 6
Updates to Node address values