loraconf_sample.h updated
This commit is contained in:
1 parent
09e2cba909
commit
16bc2dda23
3 files changed
+6
-4
No files matched your search
@@ -9,11 +9,13 @@
|
||||
|
||||
/*
|
||||
|
||||
// Only define DEVEUI here if you don't want it to be derived from device's MAC address
|
||||
// Set your DEVEUI here, if you have one. You can leave this untouched,
|
||||
// then the DEVEUI will be generated during runtime from device's MAC adress
|
||||
// Note: Use same format as in TTN console (cut & paste, for your convenience)
|
||||
// static const u1_t DEVEUI[8]={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
||||
static const u1_t DEVEUI[8]={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
||||
|
||||
// Note: Use msb format for APPEUI as in TTN console (cut & paste, for your convenience)
|
||||
// For TTN, APPEUI always starts with 0x70, 0xB3, 0xD5
|
||||
static const u1_t APPEUI[8]={ 0x00, 0x00, 0x00, 0x00, 0x00, 0xD5, 0xB3, 0x70 };
|
||||
|
||||
// This key should be in big endian format (or, since it is not really a
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ void printKey(const char * name, const uint8_t * key, uint8_t len, bool lsb) {
|
||||
uint8_t start=lsb?len:0;
|
||||
uint8_t end = lsb?0:len;
|
||||
const uint8_t * p ;
|
||||
char keystring[len+1] = "", keybyte[3];
|
||||
char keystring[len+1], keybyte[3];
|
||||
for (uint8_t i=0; i<len ; i++) {
|
||||
p = lsb ? key+len-i-1 : key+i;
|
||||
sprintf(keybyte, "%02X", * p);
|
||||
|
||||
Reference in new issue
Block a user