[OTA] Capability to disable Firmware Update on ESP32 WEB (#1621)
* disabling Firmware Update on ESP32 --------- Co-authored-by: Bert Wynants <bwynants+drupal-git@gmail.com>
This commit is contained in:
1 parent
ad4e4b55c7
commit
9bb322daf8
3 files changed
+10
-3
No files matched your search
+4
-1
@@ -1056,6 +1056,7 @@ void handleIN() {
|
||||
}
|
||||
}
|
||||
|
||||
# if defined(ESP32) && defined(MQTT_HTTPS_FW_UPDATE)
|
||||
/**
|
||||
* @brief /UP - Firmware Upgrade Page
|
||||
*
|
||||
@@ -1121,6 +1122,7 @@ void handleUP() {
|
||||
response += String(buffer);
|
||||
server.send(200, "text/html", response);
|
||||
}
|
||||
# endif
|
||||
|
||||
void sendRestartPage() {
|
||||
char jsonChar[100];
|
||||
@@ -1257,8 +1259,9 @@ void WebUISetup() {
|
||||
|
||||
server.on("/in", handleIN); // Information
|
||||
server.on("/cs", handleCS); // Console
|
||||
# if defined(ESP32) && defined(MQTT_HTTPS_FW_UPDATE)
|
||||
server.on("/up", handleUP); // Firmware Upgrade
|
||||
|
||||
# endif
|
||||
server.on("/cn", handleCN); // Configuration
|
||||
server.on("/wi", handleWI); // Configure Wifi
|
||||
server.on("/mq", handleMQ); // Configure MQTT
|
||||
|
||||
Reference in new issue
Block a user