This commit is contained in:
38
src/global_data/global_data.h
Normal file
38
src/global_data/global_data.h
Normal file
@@ -0,0 +1,38 @@
|
||||
#include <Arduino.h>
|
||||
|
||||
struct SensorData {
|
||||
float bus_voltage;
|
||||
float shunt_voltage;
|
||||
float shunt_current;
|
||||
};
|
||||
|
||||
struct WaterData{
|
||||
// Water level in cm
|
||||
float level;
|
||||
// Water volume in liters
|
||||
float liters;
|
||||
// Percentage
|
||||
float percentage;
|
||||
};
|
||||
|
||||
|
||||
struct NetworkData {
|
||||
String ip_address;
|
||||
bool link;
|
||||
float rssi;
|
||||
String network_name;
|
||||
};
|
||||
|
||||
struct DeviceTelemetry {
|
||||
float heap_used_percent;
|
||||
int uptime_seconds;
|
||||
};
|
||||
|
||||
struct ActiveErrors {
|
||||
bool voltage_low;
|
||||
bool voltage_high;
|
||||
bool current_low;
|
||||
bool current_high;
|
||||
bool level_low;
|
||||
bool level_high;
|
||||
};
|
||||
Reference in New Issue
Block a user