Skip to content

Commit

Permalink
working on definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
tablatronix committed Nov 6, 2023
1 parent 680968f commit 5e9f4e3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1961,6 +1961,13 @@ void WiFiManager::doParamSave(){

}

#ifdef WM_NOINFO
void WiFiManager::handleInfo() {
}

String WiFiManager::getInfoData(String id){
}
#else
/**
* HTTPD CALLBACK info page
*/
Expand Down Expand Up @@ -2063,6 +2070,7 @@ void WiFiManager::handleInfo() {
if(_showInfoErase) page += FPSTR(HTTP_ERASEBTN);
if(_showBack) page += FPSTR(HTTP_BACKBTN);
page += FPSTR(HTTP_HELP);
page += FPSTR(HTTP_CREDITS);
page += FPSTR(HTTP_END);

HTTPSend(page);
Expand Down Expand Up @@ -2306,6 +2314,8 @@ String WiFiManager::getInfoData(String id){
return p;
}

#endif

/**
* HTTPD CALLBACK exit, closes configportal if blocking, if non blocking undefined
*/
Expand Down
4 changes: 3 additions & 1 deletion wm_strings_en.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ const char HTTP_STYLE[] PROGMEM = "<style>"
":disabled {opacity: 0.5;}"
"</style>";

const char HTTP_CREDITS[] PROGMEM = "Github <a href='https://github.com/tzapu/WiFiManager'>https://github.com/tzapu/WiFiManager</a>.";

#ifndef WM_NOHELP
const char HTTP_HELP[] PROGMEM =
"<br/><h3>Available pages</h3><hr>"
Expand All @@ -144,7 +146,7 @@ const char HTTP_HELP[] PROGMEM =
"<tr><td>/erase</td>"
"<td>Erase WiFi configuration and reboot device. Device will not reconnect to a network until new WiFi configuration data is entered.</td></tr>"
"</table>"
"<p/>Github <a href='https://github.com/tzapu/WiFiManager'>https://github.com/tzapu/WiFiManager</a>.";
"<p/>";
#else
const char HTTP_HELP[] PROGMEM = "";
#endif
Expand Down

0 comments on commit 5e9f4e3

Please sign in to comment.