macro test

This commit is contained in:
tablatronix
2022-02-24 11:43:42 -06:00
parent 8ecf0575a1
commit d8c81ecca1
+5 -1
View File
@@ -588,8 +588,12 @@ void WiFiManager::setupHTTPServer(){
server.reset(new WM_WebServer(_httpPort));
#define G(string_literal) (String(FPSTR(string_literal)).c_str())
// workaround for Uri() bug https://github.com/esp8266/Arduino/issues/7102
/* Setup httpd callbacks, web pages: root, wifi config pages, SO captive portal detectors and not found. */
server->on(String(FPSTR(R_root)).c_str(), std::bind(&WiFiManager::handleRoot, this));
server->on(G(R_root), std::bind(&WiFiManager::handleRoot, this));
server->on(String(FPSTR(R_wifi)).c_str(), std::bind(&WiFiManager::handleWifi, this, true));
server->on(String(FPSTR(R_wifinoscan)).c_str(), std::bind(&WiFiManager::handleWifi, this, false));
server->on(String(FPSTR(R_wifisave)).c_str(), std::bind(&WiFiManager::handleWifiSave, this));