System Status\ Device Name: " + String(myESP.getHostname()) + "\ Connected SSID: " + String(myESP.getSSID()) + "\ Device IP: " + String(myESP.getIP()) + "\ Uptime (ms): " + String(millis()) + "
\ \ ")); } ================================================ FILE: examples/AdvancedFeatures/configServerApDemo/configServerApDemo.ino ================================================ /* configServerApDemo.ino Copyright (c) 2017 ItKindaWorks All right reserved. github.com/ItKindaWorks This file is part of ESPHelper ESPHelper is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ESPHelper is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with ESPHelper. If not, see400: Invalid Request - MQTT info specified without host
\Config info loaded
\Wait for the ESP8266 to restart with the new settings
\You will be redirected to the home page in 10 seconds.
")); // printNetInfo(&_config, "[ESPHelperWeb Post]", true, true); _configChanged = true; } void ESPHelperWebConfig::setFlashReset(const char* uri){ createSafeStringFromCharArray(resetURI, _resetURI); resetURI.clear(); resetURI.print(uri); _resetSet = true; } void ESPHelperWebConfig::handleReset(AsyncWebServerRequest *request){ //tell the user that the config is loaded in and the module is restarting #warning "TODO: Implement flash reset from web config" // _server->send(200, "text/plain", String("Resetting SPIFFS and restarting with default values")); // LittleFS.format(); // ESP.restart(); } void ESPHelperWebConfig::handleNotFound(AsyncWebServerRequest *request){ request->send(404, "text/plain", "404: Not found"); // Send HTTP status 404 (Not Found) when there's no handler for the URI in the request } ================================================ FILE: src/ESPHelperWebConfig.h ================================================ /* ESPHelperWebConfig.h Copyright (c) 2019 ItKindaWorks All right reserved. github.com/ItKindaWorks This file is part of ESPHelper ESPHelper is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ESPHelper is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with ESPHelper. If not, see