From cedc8694114c8acaef090da1f070aef811e3e66a Mon Sep 17 00:00:00 2001 From: Joachim Hummel Date: Sat, 16 Nov 2019 13:07:44 +0100 Subject: [PATCH] Added Arduino Sketch --- config.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 config.h diff --git a/config.h b/config.h new file mode 100644 index 0000000..f339ce7 --- /dev/null +++ b/config.h @@ -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 };