mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-23 11:16:45 +00:00
Add .on("/config") to AP mode
This commit is contained in:
parent
f874ff9248
commit
952034af06
@ -118,7 +118,6 @@ extern char mqttNodeName[16];
|
|||||||
char mqttNodeName[3] = "na";
|
char mqttNodeName[3] = "na";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
String getOption(int value, String label, bool selected)
|
String getOption(int value, String label, bool selected)
|
||||||
{
|
{
|
||||||
@ -1129,7 +1128,8 @@ void webHandleMqttConfig()
|
|||||||
F("'><p><button type='submit' name='save' value='mqtt'>" D_HTTP_SAVE_SETTINGS "</button></form></p>");
|
F("'><p><button type='submit' name='save' value='mqtt'>" D_HTTP_SAVE_SETTINGS "</button></form></p>");
|
||||||
|
|
||||||
add_form_button(httpMessage, F("↩ " D_HTTP_CONFIGURATION), F("/config"), F(""));
|
add_form_button(httpMessage, F("↩ " D_HTTP_CONFIGURATION), F("/config"), F(""));
|
||||||
// httpMessage += PSTR("<p><form method='get' action='/config'><button type='submit'>↩ " D_HTTP_CONFIGURATION
|
// httpMessage += PSTR("<p><form method='get' action='/config'><button type='submit'>↩ "
|
||||||
|
// D_HTTP_CONFIGURATION
|
||||||
// "</button></form></p>");
|
// "</button></form></p>");
|
||||||
|
|
||||||
webSendPage(httpGetNodename(), httpMessage.length(), false);
|
webSendPage(httpGetNodename(), httpMessage.length(), false);
|
||||||
@ -1942,6 +1942,7 @@ void httpSetup()
|
|||||||
if(WiFi.getMode() != WIFI_STA) {
|
if(WiFi.getMode() != WIFI_STA) {
|
||||||
LOG_TRACE(TAG_HTTP, F("Wifi access point"));
|
LOG_TRACE(TAG_HTTP, F("Wifi access point"));
|
||||||
webServer.on(F("/"), webHandleWifiConfig);
|
webServer.on(F("/"), webHandleWifiConfig);
|
||||||
|
webServer.on(F("/config"), webHandleWifiConfig);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user