splitbasicotantpserverdebugwebserial
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| splitbasicotantpserverdebugwebserial [2025/03/01 03:01] – jwan | splitbasicotantpserverdebugwebserial [2025/10/10 10:15] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 126: | Line 126: | ||
| </ | </ | ||
| )rawliteral"; | )rawliteral"; | ||
| + | |||
| + | void handleRoot(AsyncWebServerRequest *request) { | ||
| + | String message = "< | ||
| + | message += "< | ||
| + | message += " | ||
| + | message += "IP Address: " + IPaddr + "< | ||
| + | message += " | ||
| + | message += "</ | ||
| + | request-> | ||
| + | } | ||
| // Function to initialize the web server | // Function to initialize the web server | ||
| void webServerInit() { | void webServerInit() { | ||
| // Route for root / web page | // Route for root / web page | ||
| - | server.on("/", | + | server.on("/ |
| + | server.on("/ | ||
| request-> | request-> | ||
| }); | }); | ||
| Line 137: | Line 148: | ||
| events.onConnect([](AsyncEventSourceClient *client){ | events.onConnect([](AsyncEventSourceClient *client){ | ||
| if(client-> | if(client-> | ||
| - | | + | |
| } | } | ||
| client-> | client-> | ||
| Line 161: | Line 172: | ||
| // Declare and define NTP objects | // Declare and define NTP objects | ||
| WiFiUDP ntpUDP; | WiFiUDP ntpUDP; | ||
| - | NTPClient timeClient(ntpUDP, | + | NTPClient timeClient(ntpUDP, |
| // Function to initialize NTP | // Function to initialize NTP | ||
splitbasicotantpserverdebugwebserial.1740798084.txt.gz · Last modified: (external edit)
