Rename project to overland-controller
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
#define MAX_RELAYS 2
|
||||
#define MAX_TEMP_SENSORS 8
|
||||
|
||||
struct RelayConfig {
|
||||
String id;
|
||||
String name;
|
||||
uint8_t pin;
|
||||
bool enabled;
|
||||
};
|
||||
|
||||
struct TempSensorConfig {
|
||||
String id;
|
||||
String name;
|
||||
String address;
|
||||
bool enabled;
|
||||
};
|
||||
|
||||
struct BmsConfig {
|
||||
bool enabled;
|
||||
String name;
|
||||
String address;
|
||||
String addressType;
|
||||
};
|
||||
|
||||
struct AppConfig {
|
||||
String deviceName;
|
||||
RelayConfig relays[MAX_RELAYS];
|
||||
TempSensorConfig tempSensors[MAX_TEMP_SENSORS];
|
||||
int tempSensorCount;
|
||||
BmsConfig bms;
|
||||
};
|
||||
|
||||
extern AppConfig appConfig;
|
||||
|
||||
void loadDefaultConfig();
|
||||
void loadConfig();
|
||||
void saveConfig();
|
||||
void factoryResetConfig();
|
||||
void printConfig();
|
||||
Reference in New Issue
Block a user