mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Fix webServer landing page in STA mode
This commit is contained in:
parent
8b25b87b3f
commit
c38b75dd1a
@ -1939,13 +1939,13 @@ void httpSetup()
|
|||||||
#if HASP_USE_WIFI > 0
|
#if HASP_USE_WIFI > 0
|
||||||
|
|
||||||
// These two endpoints are needed in STA and AP mode
|
// These two endpoints are needed in STA and AP mode
|
||||||
webServer.on(F("/"), webHandleWifiConfig);
|
|
||||||
webServer.on(F("/config"), webHandleConfig);
|
webServer.on(F("/config"), webHandleConfig);
|
||||||
|
|
||||||
#if !defined(STM32F4xx)
|
#if !defined(STM32F4xx)
|
||||||
|
|
||||||
#if HASP_USE_CONFIG > 0
|
#if HASP_USE_CONFIG > 0
|
||||||
if(WiFi.getMode() != WIFI_STA) {
|
if(WiFi.getMode() != WIFI_STA) {
|
||||||
|
webServer.on(F("/"), webHandleWifiConfig);
|
||||||
LOG_TRACE(TAG_HTTP, F("Wifi access point"));
|
LOG_TRACE(TAG_HTTP, F("Wifi access point"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1984,6 +1984,7 @@ void httpSetup()
|
|||||||
handleFileUpload);
|
handleFileUpload);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
webServer.on(F("/"), webHandleRoot);
|
||||||
webServer.on(F("/info"), webHandleInfo);
|
webServer.on(F("/info"), webHandleInfo);
|
||||||
webServer.on(F("/screenshot"), webHandleScreenshot);
|
webServer.on(F("/screenshot"), webHandleScreenshot);
|
||||||
webServer.on(F("/firmware"), webHandleFirmware);
|
webServer.on(F("/firmware"), webHandleFirmware);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user