System Status\ 224 | Device Name: " + String(myESP.getHostname()) + "\ 225 | Connected SSID: " + String(myESP.getSSID()) + "\ 226 | Device IP: " + String(myESP.getIP()) + "\ 227 | Uptime (ms): " + String(millis()) + "
\ 228 | \ 229 | ")); 230 | } 231 | 232 | 233 | -------------------------------------------------------------------------------- /src/ESPHelperWebConfig.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | ESPHelperWebConfig.cpp 3 | Copyright (c) 2017 ItKindaWorks All right reserved. 4 | github.com/ItKindaWorks 5 | 6 | This file is part of ESPHelper 7 | 8 | ESPHelper is free software: you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation, either version 3 of the License, or 11 | (at your option) any later version. 12 | 13 | ESPHelper is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with ESPHelper. If not, see400: Invalid Request - MQTT info specified without host
\ 168 |Config info loaded
\ 214 |Wait for the ESP8266 to restart with the new settings
\ 217 |You will be redirected to the home page in 10 seconds.
")); 218 | 219 | 220 | 221 | // printNetInfo(&_config, "[ESPHelperWeb Post]", true, true); 222 | 223 | _configChanged = true; 224 | } 225 | 226 | void ESPHelperWebConfig::setFlashReset(const char* uri){ 227 | createSafeStringFromCharArray(resetURI, _resetURI); 228 | resetURI.clear(); 229 | resetURI.print(uri); 230 | _resetSet = true; 231 | } 232 | 233 | void ESPHelperWebConfig::handleReset(AsyncWebServerRequest *request){ 234 | //tell the user that the config is loaded in and the module is restarting 235 | #warning "TODO: Implement flash reset from web config" 236 | // _server->send(200, "text/plain", String("Resetting SPIFFS and restarting with default values")); 237 | 238 | // LittleFS.format(); 239 | // ESP.restart(); 240 | } 241 | 242 | void ESPHelperWebConfig::handleNotFound(AsyncWebServerRequest *request){ 243 | 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 244 | } 245 | -------------------------------------------------------------------------------- /examples/InputOutput/RGBLight/RGBLight.ino: -------------------------------------------------------------------------------- 1 | /* 2 | wifiRGB.ino 3 | Copyright (c) 2017 ItKindaWorks All right reserved. 4 | github.com/ItKindaWorks 5 | 6 | This file is part of wifiRGB 7 | 8 | wifiRGB is free software: you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation, either version 3 of the License, or 11 | (at your option) any later version. 12 | 13 | wifiRGB is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with wifiRGB. If not, see