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.
Farm-Data-Relay-System/examples/1_LoRa_Sensor/fdrs_sensor_config.h

30 lines
630 B
C

2 years ago
// FARM DATA RELAY SYSTEM
//
// Sensor Configuration
2 years ago
2 years ago
#include <fdrs_globals.h>
2 years ago
#define READING_ID 1 //Unique ID for this sensor
#define GTWY_MAC 0x04 //Address of the nearest gateway
2 years ago
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
2 years ago
//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
2 years ago
//433E6 for Asia
//866E6 for Europe
//915E6 for North America
2 years ago
#define LORA_BAND 915E6
#define LORA_SF 7