Updates to the user experience.

This commit is contained in:
2023-08-16 18:40:09 -05:00
parent a81d497dcc
commit 2ece05505f
11 changed files with 476 additions and 95 deletions

View File

@@ -5,6 +5,10 @@
#include "ProjGlobals.h"
#include "WiFiStateHandler.h"
#include <DNSServer.h> ///< Required for Captive Portal behavior.
const byte DNS_PORT = 53; ///< Capture DNS requests on port 53
//DNSServer dnsServer; ///< Used for the captive portal AP mode
WiFiConnectState wifiConState; ///< Track the current WiFi state
@@ -73,7 +77,7 @@ WiFiConnectState WiFiStateHandler() {
WiFi.softAP(AP_NAME.c_str());
myIP = WiFi.softAPIP();
Serial.printf("IP Address: %s\n", myIP.toString().c_str());
// @todo dnsServer.start(DNS_PORT, "*", apIP);
//dnsServer.start(DNS_PORT, "growcontroller.info", myIP);
timeStateChange = millis();
//StartWebServer();
wifiConState = WFC_HostingAP;
@@ -93,7 +97,7 @@ WiFiConnectState WiFiStateHandler() {
// @todo SetLED(LED_WIFI, 0);
// @todo }
// @todo server.handleClient();
// @todo dnsServer.processNextRequest();
// dnsServer.processNextRequest();
break;
default:
case WFC_Idle: