2022-08-04 03:19:20 +00:00
|
|
|
// FARM DATA RELAY SYSTEM
|
|
|
|
//
|
|
|
|
// Sensor Configuration
|
|
|
|
|
|
|
|
#include <fdrs_globals.h>
|
|
|
|
|
2023-01-26 01:28:18 +00:00
|
|
|
#define READING_ID 1 //Unique ID for this sensor
|
2022-08-04 03:19:20 +00:00
|
|
|
#define GTWY_MAC 0x01 //Address of the nearest gateway
|
|
|
|
|
2023-01-26 01:28:18 +00:00
|
|
|
#define USE_ESPNOW
|
|
|
|
//#define USE_LORA
|
|
|
|
//#define DEEP_SLEEP
|
2022-08-04 03:19:20 +00:00
|
|
|
//#define POWER_CTRL 14
|
2024-02-10 05:22:41 +00:00
|
|
|
|
|
|
|
// Choose none or one of the debug options below.
|
|
|
|
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
|
|
|
|
#define FDRS_DEBUG // Enable USB-Serial debugging
|
2024-02-10 21:29:54 +00:00
|
|
|
// #define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
|
|
|
|
// #define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
|
2022-08-04 03:19:20 +00:00
|
|
|
|
2022-11-30 04:28:51 +00:00
|
|
|
// LoRa Configuration
|
2022-12-03 05:39:44 +00:00
|
|
|
#define RADIOLIB_MODULE SX1276 //Tested on SX1276
|
2022-08-04 03:19:20 +00:00
|
|
|
#define LORA_SS 18
|
|
|
|
#define LORA_RST 14
|
2023-01-30 17:33:06 +00:00
|
|
|
#define LORA_DIO 26
|
2022-09-08 18:48:58 +00:00
|
|
|
|
2022-12-03 05:39:44 +00:00
|
|
|
#define LORA_TXPWR 17 // LoRa TX power in dBm (: +2dBm - +17dBm (for SX1276-7) +20dBm (for SX1278))
|
|
|
|
#define LORA_ACK // Request LoRa acknowledgment.
|