Added Additional Config Parameters
This commit is contained in:
parent
946159c488
commit
0b1df4e286
1 changed files with 37 additions and 4 deletions
|
@ -1,4 +1,37 @@
|
||||||
// Information from The Things Network, device configuration ACTIVATION METHOD: ABP, msb left
|
/*
|
||||||
unsigned char NwkSkey[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
secconfig.h - Firmware Configuration
|
||||||
unsigned char AppSkey[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
|
||||||
unsigned char DevAddr[4] = { 0x00, 0x00, 0x00, 0x00 };
|
* Supported RF Modules
|
||||||
|
#define RF_LORA - HopeRF RFM95 LoRa Module
|
||||||
|
#define RF_RFM69 - HopeRF RFM69(H)(C)W Module
|
||||||
|
|
||||||
|
* Supported Sensors
|
||||||
|
#define HAS_SHT21 - Sensirion SHT21 Temperature + Humidity Sensor
|
||||||
|
#define HAS_BME280 - Bosch BME280 Temperature + Humidity + Pressure Sensor
|
||||||
|
|
||||||
|
* LED Support
|
||||||
|
#define LED_PIN PIN_A7 - LED is connected to ATTiny84 Pin A7 on TinyTX SMD / TinyLora
|
||||||
|
|
||||||
|
* See the following Examples for needed RF Module Parameters, uncomment and adapt the one fitting your Hardware
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// LoRa RFM95 + SHT21, LED on Pin A7
|
||||||
|
#define RF_LORA
|
||||||
|
#define HAS_SHT21
|
||||||
|
#define LED_PIN PIN_A7
|
||||||
|
// Information from The Things Network, device configuration ACTIVATION METHOD: ABP, msb left
|
||||||
|
unsigned char NwkSkey[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
||||||
|
unsigned char AppSkey[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
||||||
|
unsigned char DevAddr[4] = { 0x00, 0x00, 0x00, 0x00 };
|
||||||
|
|
||||||
|
/* RFM69 + BME280, LED on Pin A7
|
||||||
|
#define RF_RFM69
|
||||||
|
#define HAS_BME280
|
||||||
|
#define LED_PIN PIN_A7
|
||||||
|
#define RFM69_NETWORKID 101 // NetworkID, 0-255, sould be the same for Node and Receiver
|
||||||
|
#define RFM69_NODEID 29 // NodeID of this Sensor, 1-255, should be unique for every node in the same Network
|
||||||
|
#define RFM69_GATEWAY 1 // NodeID of the Receiver, 1-255
|
||||||
|
#define RFM69_TXPOWER 31 // Transmitting Power 0-31, see datasheet for details
|
||||||
|
#define RFM69_ENCKEY "0123456789ABCDEF" // AES encryption key, exactly 16 characters, if set messages will be encrypted using AES 128bit
|
||||||
|
*/
|
Loading…
Reference in a new issue