automated builds
This commit is contained in:
parent
010c92fc17
commit
921a5f1cc4
6 changed files with 229 additions and 10 deletions
|
@ -1837,6 +1837,7 @@ void set_mqtt_useauth(bool use_auth)
|
|||
ESPMega_FRAM.write8(FRAM_ADDRESS_MQTT_USEAUTH, MQTT_USE_AUTH);
|
||||
}
|
||||
|
||||
#ifdef ENABLE_WEBUI
|
||||
void set_webui_username(String username)
|
||||
{
|
||||
username.toCharArray(WEBUI_USERNAME, 32);
|
||||
|
@ -1848,6 +1849,7 @@ void set_webui_password(String password)
|
|||
password.toCharArray(WEBUI_PASSWORD, 32);
|
||||
ESPMega_FRAM.write(FRAM_ADDRESS_WEBUI_PASSWORD, (uint8_t *)WEBUI_PASSWORD, 32);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Resets the device to factory default settings.
|
||||
|
@ -1884,8 +1886,10 @@ void factory_reset()
|
|||
set_ip("192.168.0.10");
|
||||
set_gw("192.168.0.1");
|
||||
set_netmask("255.255.255.0");
|
||||
#ifdef ENABLE_WEBUI
|
||||
set_webui_username("admin");
|
||||
set_webui_password("admin");
|
||||
#endif
|
||||
|
||||
// Reboot
|
||||
#ifdef ENABLE_INTERNAL_LCD
|
||||
|
|
|
@ -16,11 +16,12 @@
|
|||
#define VIRTUAL_INTERRUPT_PRELOAD // Preload Virtual Interrupts buffer
|
||||
|
||||
// Enable Software Module(s)
|
||||
#define ENABLE_INTERNAL_LCD
|
||||
#define ENABLE_IR_MODULE
|
||||
#define ENABLE_CLIMATE_MODULE // Require IR Module
|
||||
#define ENABLE_ANALOG_MODULE
|
||||
#define ENABLE_WEBUI
|
||||
// Deprecated. Use Build Flags instead.
|
||||
// #define ENABLE_INTERNAL_LCD
|
||||
// #define ENABLE_IR_MODULE
|
||||
// #define ENABLE_CLIMATE_MODULE // Require IR Module
|
||||
// #define ENABLE_ANALOG_MODULE
|
||||
// #define ENABLE_WEBUI
|
||||
|
||||
// IR Kit Configuration
|
||||
#define IR_RECIEVE_PIN 35
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue