Added Arduino Sketch

This commit is contained in:
Joachim Hummel 2019-11-16 13:07:44 +01:00
parent 4060119bca
commit cedc869411
1 changed files with 13 additions and 0 deletions

13
config.h Normal file
View File

@ -0,0 +1,13 @@
// This EUI must be in little-endian format, so least-significant-byte
// first. When copying an EUI from ttnctl output, this means to reverse
// the bytes. For TTN issued EUIs the last bytes should be 0xD5, 0xB3,
// 0x70.
static const u1_t PROGMEM APPEUI[8]={ 0x53, 0x94, 0x00, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA };
// This should also be in little endian format, see above.
static const u1_t PROGMEM DEVEUI[8]={ 0x26, 0x77, 0xB8, 0xB7, 0xAA, 0xAA, 0xAA, 0xAA };
#
// This key should be in big endian format (or, since it is not really a
// number but a block of memory, endianness does not really apply). In
// practice, a key taken from ttnctl can be copied as-is.
static const u1_t PROGMEM APPKEY[16] = { 0x42, 0xCA, 0x86, 0xFF, 0x5C, 0xFC, 0xA4, 0xCA, 0x4B, 0xD1, 0xB5, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA };