loraconf.sample.h edited
This commit is contained in:
parent
0375185f68
commit
5096cd8751
@ -1,7 +1,7 @@
|
||||
#ifndef __LORACONF_H__
|
||||
#define __LORACONF_H__
|
||||
|
||||
#if(HAS_LORA)
|
||||
#if (HAS_LORA)
|
||||
|
||||
/************************************************************
|
||||
* LMIC LoRaWAN configuration
|
||||
@ -47,7 +47,6 @@ static const u1_t APPKEY[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/************************************************************
|
||||
* ABP configuration (for development)
|
||||
*
|
||||
@ -63,16 +62,20 @@ static const u1_t APPKEY[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
************************************************************/
|
||||
#ifdef LORA_ABP
|
||||
|
||||
// ID of LoRaAlliance assigned Network (for a list, see e.g. here https://www.thethingsnetwork.org/docs/lorawan/prefix-assignments.html)
|
||||
// ID of LoRaAlliance assigned Network (for a list, see e.g. here
|
||||
// https://www.thethingsnetwork.org/docs/lorawan/prefix-assignments.html)
|
||||
static const u1_t NETID = 0x13; // TTN
|
||||
|
||||
static const u1_t NWKSKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
||||
static const u1_t NWKSKEY[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
||||
|
||||
static const u1_t APPSKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
||||
static const u1_t APPSKEY[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
||||
|
||||
static const u4_t DEVADDR = 0x00000000; // <-- Change this address for every node!
|
||||
static const u4_t DEVADDR =
|
||||
0x00000000; // <-- Change this address for every node!
|
||||
|
||||
// set additional ABP parameters in loraconf_abp.cpp
|
||||
void setABPParamaters();
|
||||
|
Loading…
Reference in New Issue
Block a user