This commit is contained in:
Marcus 2024-10-24 02:54:18 +02:00
parent 99d598e05d
commit 458077442a

View file

@ -101,15 +101,23 @@ struct Config_WiFi {
*/ */
struct Config_System_Output { struct Config_System_Output {
//byte type;
//char name[32] = "lol"; /*
//byte gpio = 15; * Config System Outputs
//bool gpio_invert; *
//bool gpio_pwm; * - output_type: output type like GPIO, I2C, URL
//char i2c[8]; * 1 - GPIO
//byte ip[4]; * 2 - I2C
//char ip_path[32]; * 3 - URL
//bool enabled; * - gpio: which gpio is used
* - gpio_invert: invert gpio output
* - gpio_pwm: enable pwm for output
* - i2c:
* - ip: ip to smart plug (tasmota e.g.)
* - ip_path: uri path
* - enabled: enable output
*
*/
byte type[Max_Outputs]; byte type[Max_Outputs];
char name[Max_Outputs][32]; char name[Max_Outputs][32];
byte gpio[Max_Outputs]; byte gpio[Max_Outputs];
@ -130,32 +138,6 @@ struct Config_System {
char httpPass[32]; char httpPass[32];
bool httpLogSerial; bool httpLogSerial;
unsigned short schedulerInterval = 1000; unsigned short schedulerInterval = 1000;
/*
* Config System Outputs
*
* - output_type: output type like GPIO, I2C, URL
* 1 - GPIO
* 2 - I2C
* 3 - URL
* - output_gpio: which gpio is used
* - output_gpio_invert: invert gpio output
* - output_gpio_pwm: enable pwm for output
* - output_i2c:
* - output_ip: ip to smart plug (tasmota e.g.)
* - output_ip_path: uri path
* - output_enabled: enable output
*
*/
// byte output_type[Max_Outputs];
// char output_name[Max_Outputs][32];
// byte output_gpio[Max_Outputs];
// bool output_gpio_invert[Max_Outputs];
// bool output_gpio_pwm[Max_Outputs];
// char output_i2c[Max_Outputs][8];
// byte output_ip[Max_Outputs][4];
// char output_ip_path[Max_Outputs][32];
// bool output_enabled[Max_Outputs];
Config_System_Output output; Config_System_Output output;
}; };