mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
Add feature to set a custom device hostname
This commit is contained in:
parent
f94a011063
commit
daeeece63a
5 changed files with 12 additions and 1 deletions
|
@ -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>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue