Removed Datareading.h file and transferred sensor definitions to default.h
parent
99a29a3f1e
commit
f165cfd20e
@ -0,0 +1,16 @@
|
||||
|
||||
#define READING_ID 1 //Unique ID for this sensor
|
||||
#define GTWY_MAC 0x00 //Address of the nearest gateway
|
||||
|
||||
//#define USE_ESPNOW
|
||||
#define USE_LORA
|
||||
#define DEEP_SLEEP
|
||||
//#define POWER_CTRL 14
|
||||
|
||||
//LoRa Configuration
|
||||
#define SCK 5
|
||||
#define MISO 19
|
||||
#define MOSI 27
|
||||
#define SS 18
|
||||
#define RST 14
|
||||
#define DIO0 26
|
@ -0,0 +1,16 @@
|
||||
#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 MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE
|
||||
|
||||
//LoRa Configuration
|
||||
#define SCK 5
|
||||
#define MISO 19
|
||||
#define MOSI 27
|
||||
#define SS 18
|
||||
#define RST 14
|
||||
#define DIO0 26
|
@ -1,29 +0,0 @@
|
||||
|
||||
typedef struct __attribute__((packed)) DataReading {
|
||||
float d;
|
||||
uint16_t id;
|
||||
uint8_t t;
|
||||
|
||||
} DataReading;
|
||||
|
||||
//Type definitions in progress:
|
||||
|
||||
#define STATUS_T 0 // Status
|
||||
#define TEMP_T 1 // Temperature
|
||||
#define TEMP2_T 2 // Temperature #2
|
||||
#define HUMIDITY_T 3 // Relative Humidity
|
||||
#define PRESSURE_T 4 // Atmospheric Pressure
|
||||
#define LIGHT_T 5 // Light (lux)
|
||||
#define SOIL_T 6 // Soil Moisture
|
||||
#define SOIL2_T 7 // Soil Moisture #2
|
||||
#define OXYGEN_T 8 // Oxygen
|
||||
#define CO2_T 9 // Carbon Dioxide
|
||||
#define WINDSPD_T 10 // Wind Speed
|
||||
#define WINDHDG_T 11 // Wind Direction
|
||||
#define RAINFALL_T 12 // Rainfall
|
||||
#define MOTION_T 13 // Motion
|
||||
#define VOLTAGE_T 14 // Voltage
|
||||
#define VOLTAGE2_T 15 // Voltage #2
|
||||
#define CURRENT_T 16 // Current
|
||||
#define CURRENT2_T 17 // Current #2
|
||||
#define IT_T 18 // Iterations
|
@ -1,29 +0,0 @@
|
||||
|
||||
typedef struct __attribute__((packed)) DataReading {
|
||||
float d;
|
||||
uint16_t id;
|
||||
uint8_t t;
|
||||
|
||||
} DataReading;
|
||||
|
||||
//Type definitions in progress:
|
||||
|
||||
#define STATUS_T 0 // Status
|
||||
#define TEMP_T 1 // Temperature
|
||||
#define TEMP2_T 2 // Temperature #2
|
||||
#define HUMIDITY_T 3 // Relative Humidity
|
||||
#define PRESSURE_T 4 // Atmospheric Pressure
|
||||
#define LIGHT_T 5 // Light (lux)
|
||||
#define SOIL_T 6 // Soil Moisture
|
||||
#define SOIL2_T 7 // Soil Moisture #2
|
||||
#define OXYGEN_T 8 // Oxygen
|
||||
#define CO2_T 9 // Carbon Dioxide
|
||||
#define WINDSPD_T 10 // Wind Speed
|
||||
#define WINDHDG_T 11 // Wind Direction
|
||||
#define RAINFALL_T 12 // Rainfall
|
||||
#define MOTION_T 13 // Motion
|
||||
#define VOLTAGE_T 14 // Voltage
|
||||
#define VOLTAGE2_T 15 // Voltage #2
|
||||
#define CURRENT_T 16 // Current
|
||||
#define CURRENT2_T 17 // Current #2
|
||||
#define IT_T 18 // Iterations
|
Loading…
Reference in New Issue