mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-10 07:10:42 +00:00
5ef5b73df3
* keywords.txt (for syntax highlighting), library.properties (for a proper description added * moved Universal_Sensor_beta to the examples directory * moved Sensors, FDRS_Sensor and FDRS_Gateway to resources folder. They contain documentation which needs to be kept (to be discussed where to put that later on) but are fully redundant as they are just duplicates of the different sensors / gateways in the examples folder.
28 lines
572 B
C
28 lines
572 B
C
// FARM DATA RELAY SYSTEM
|
|
//
|
|
// Sensor Configuration
|
|
// (This file will soon be known as 'sensor_config.h')
|
|
//
|
|
|
|
//#include <fdrs_globals.h> //Uncomment when you install the globals file
|
|
|
|
#define READING_ID 1 //Unique ID for this sensor
|
|
#define GTWY_MAC 0x04 //Address of the nearest gateway
|
|
|
|
#define DEEP_SLEEP
|
|
//#define POWER_CTRL 14
|
|
#define DEBUG
|
|
|
|
//LoRa Configuration
|
|
#define SCK 5
|
|
#define MISO 19
|
|
#define MOSI 27
|
|
#define SS 18
|
|
#define RST 14
|
|
#define DIO0 26
|
|
//433E6 for Asia
|
|
//866E6 for Europe
|
|
//915E6 for North America
|
|
#define BAND 915E6
|
|
#define SF 7
|