You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
588 B
C
23 lines
588 B
C
2 years ago
|
// FARM DATA RELAY SYSTEM
|
||
|
//
|
||
|
// Sensor Configuration
|
||
|
|
||
|
|
||
2 years ago
|
#define READING_ID 1 //Unique ID for this sensor
|
||
2 years ago
|
#define GTWY_MAC 0x01 //Address of the nearest gateway
|
||
|
|
||
2 years ago
|
#define USE_ESPNOW
|
||
|
//#define USE_LORA
|
||
2 years ago
|
#define DEEP_SLEEP
|
||
|
//#define POWER_CTRL 14
|
||
|
#define FDRS_DEBUG
|
||
2 years ago
|
// LoRa Configuration
|
||
2 years ago
|
#define RADIOLIB_MODULE SX1276 //Tested on SX1276
|
||
2 years ago
|
#define LORA_SS 18
|
||
|
#define LORA_RST 14
|
||
|
#define LORA_DIO0 26
|
||
2 years ago
|
#define LORA_DIO1 33
|
||
2 years ago
|
|
||
2 years ago
|
#define LORA_TXPWR 17 // LoRa TX power in dBm (: +2dBm - +17dBm (for SX1276-7) +20dBm (for SX1278))
|
||
|
#define LORA_ACK // Request LoRa acknowledgment.
|