Skip to content

Commit 44b75b0

Browse files
authored
Add files via upload
1 parent d1aa0d8 commit 44b75b0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

STM32_LoRa/STM32_LoRa.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//***************************************************************************************************
21
//* STM_LoRa.ino *
32
//* By Ed Smallenburg. *
43
//***************************************************************************************************
@@ -76,12 +75,12 @@ u4_t DEVADDR ; // LoraWAN devaddr, end node de
7675
// Do NOT swap the order of the bytes (Little/Big Endian). The software takes care of that.
7776
//
7877
// 1 - Copied from TTN Console, Application, Application EUIS:
79-
static const u1_t APPEUI[8] = { 0x70, 0xB3, 0xD5, 0x7E, 0xD0, 0x00, 0xED, 0x89 } ;
78+
static const u1_t APPEUI[8] = { 0x70, 0xB3, 0xD4, 0xE5, 0xD0, 0x00, 0xED, 0x89 } ;
8079
// 2 - Copied from TTN Console, Device overview, App Key:
81-
static const u1_t APPKEY[16] = { 0x07, 0xCD, 0x3E, 0x37, 0xA1, 0x0D, 0x9B, 0xC7,
82-
0x44, 0x54, 0x53, 0xCB, 0x9D, 0x41, 0x9C, 0x53 } ;
80+
static const u1_t APPKEY[16] = { 0x07, 0xCD, 0x3E, 0x36, 0xA2, 0x0D, 0x9B, 0xC7,
81+
0x44, 0x54, 0x53, 0xCC, 0x9D, 0x41, 0x9C, 0x53 } ;
8382
// 3 - Copied from TTN Console, Device overview, Device EUI:
84-
static const u1_t DEVEUI[8] = { 0x00, 0x7F, 0x18, 0x32, 0x03, 0xB8, 0x8C, 0x2B } ;
83+
static const u1_t DEVEUI[8] = { 0x00, 0x7F, 0x18, 0x31, 0x04, 0xB8, 0x8C, 0x2B } ;
8584
// End of TTN configuration
8685
#define DATAVALID 0xACF2BFD2 // Random pattern for data valid in EEPROM/RTC mem
8786
// Change if you want OTA to renew keys.
@@ -452,7 +451,7 @@ void retrieveKeys()
452451
(uint8_t*)savdata.nwkKey, 16 ) ;
453452
memdmp ( "appsKey is:",
454453
(uint8_t*)savdata.artKey, 16 ) ;
455-
dbgprint ( "seqnr is %d\n", savdata.seqnoUp ) ;
454+
dbgprint ( "seqnr is %d", savdata.seqnoUp ) ;
456455
memcpy ( (uint8_t*)&DEVADDR,
457456
savdata.devaddr, sizeof(DEVADDR) ) ; // LoraWAN DEVADDR, end node device address
458457
memcpy ( NWKSKEY,
@@ -502,6 +501,7 @@ void setup()
502501
{
503502
setGPIOModeToAllPins ( GPIO_INPUT_ANALOG ) ; // All pins to input
504503
Serial1.begin ( 115200 ) ;
504+
dbgprint ( "" ) ;
505505
dbgprint ( "Starting..." ) ;
506506
pinMode ( SS, OUTPUT ) ; // Chip select for SPI
507507
digitalWrite ( SS, HIGH ) ;

0 commit comments

Comments
 (0)