mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 21:26:43 +00:00
Rename OTA_PASSWORD to ARDUINOOTA_PASSWORD
This commit is contained in:
parent
eb5a39ed1f
commit
53f695fa23
@ -41,13 +41,12 @@
|
||||
#define MQTT_STATEPERIOD 300000
|
||||
|
||||
/***************************************************
|
||||
* Server Settings
|
||||
* OTA Settings
|
||||
**************************************************/
|
||||
#define OTA_HOSTNAME ""
|
||||
#define OTA_SERVER ""
|
||||
#define OTA_PORT 80
|
||||
//#define HASP_USE_ARDUINOOTA 1 // Enable the Arduino OTA service
|
||||
#define ARDUINOOTA_PORT 3232
|
||||
#define ARDUINOOTA_PASSWORD ""
|
||||
#define OTA_URL ""
|
||||
#define OTA_PASSWORD ""
|
||||
|
||||
/***************************************************
|
||||
* Syslog Settings
|
||||
@ -152,4 +151,5 @@
|
||||
//#define LV_VDB_SIZE (32 * 1024U) // 32KiB of lvgl draw buffer (default 32)
|
||||
//#define HASP_DEBUG_OBJ_TREE // Output all objects to the log on page changes
|
||||
//#define HASP_LOG_LEVEL LOG_LEVEL_VERBOSE // LOG_LEVEL_* can be DEBUG, VERBOSE, TRACE, INFO, WARNING, ERROR, CRITICAL, ALERT, FATAL, SILENT
|
||||
#endif
|
||||
|
||||
#endif // HASP_USER_CONFIG_OVERRIDE_H
|
@ -1981,7 +1981,7 @@ static void webHandleFirmware()
|
||||
|
||||
httpMessage += FPSTR(MAIN_MENU_BUTTON);
|
||||
|
||||
webSendHeader(haspDevice.get_hostname(), httpMessage.length(), 50);
|
||||
webSendHeader(haspDevice.get_hostname(), httpMessage.length(), 60);
|
||||
webServer.sendContent(httpMessage);
|
||||
}
|
||||
|
||||
|
@ -108,8 +108,8 @@ void otaSetup(void)
|
||||
#endif
|
||||
ArduinoOTA.setRebootOnSuccess(false); // We do that ourselves
|
||||
|
||||
#ifdef OTA_PASSWORD
|
||||
ArduinoOTA.setPassword(OTA_PASSWORD); // TODO
|
||||
#ifdef ARDUINOOTA_PASSWORD
|
||||
ArduinoOTA.setPassword(ARDUINOOTA_PASSWORD); // TODO
|
||||
#endif
|
||||
|
||||
ArduinoOTA.begin();
|
||||
|
Loading…
x
Reference in New Issue
Block a user