api: make relay outputs hardware-profile aware
This commit is contained in:
@@ -4,12 +4,16 @@
|
||||
|
||||
#define MAX_RELAYS 2
|
||||
#define MAX_TEMP_SENSORS 8
|
||||
#define HARDWARE_PROFILE "generic_esp32_2ch_relay"
|
||||
|
||||
struct RelayConfig {
|
||||
String id;
|
||||
String name;
|
||||
String role;
|
||||
uint8_t hardwareChannel;
|
||||
uint8_t pin;
|
||||
bool enabled;
|
||||
bool available;
|
||||
};
|
||||
|
||||
struct TempSensorConfig {
|
||||
|
||||
Reference in New Issue
Block a user