Add feature to set a custom device hostname

This commit is contained in:
Fredrik 2025-07-03 12:21:55 +02:00
parent f94a011063
commit daeeece63a
5 changed files with 12 additions and 1 deletions

View file

@ -1008,6 +1008,7 @@ String processor(const String& var) {
}
content += "</h4>";
if (status == WL_CONNECTED) {
content += "<h4>Hostname: " + String(WiFi.getHostname()) + "</h4>";
content += "<h4>IP: " + WiFi.localIP().toString() + "</h4>";
} else {
content += "<h4>Wifi state: " + getConnectResultString(status) + "</h4>";