Farm-Data-Relay-System/examples/LoRa_Sensor/fdrs_sensor_config.h

35 lines
950 B
C
Raw Normal View History

2022-08-04 03:19:20 +00:00
// FARM DATA RELAY SYSTEM
//
// Sensor Configuration
#include <fdrs_globals.h>
#define READING_ID 2 //Unique ID for this sensor
#define GTWY_MAC 0x01 //Address of the nearest gateway
//#define USE_ESPNOW
#define USE_LORA
#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
2022-10-02 23:34:54 +00:00
#define DEBUG_CONFIG // Displays full config info on startup
2022-08-04 03:19:20 +00:00
//SPI Configuration -- Needed only on chipsets with multiple SPI interfaces (ESP32)
#define SPI_SCK 5
#define SPI_MISO 19
#define SPI_MOSI 27
//LoRa Configuration
#define LORA_SS 18
#define LORA_RST 14
#define LORA_DIO0 26
//433E6 for Asia
//866E6 for Europe
//915E6 for North America
//#define LORA_BAND 915E6 // LoRa Frequency Band
//#define LORA_SF 7 // LoRa Spreading Factor
//#define LORA_TXPWR 17 // LoRa TX power in dBm (+2dBm - +20dBm), default is +17dBm
2022-09-08 18:48:58 +00:00
#define LORA_ACK // Request LoRa acknowledgment. Increases battery usage.
2022-09-26 23:20:58 +00:00