mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
Add hardware printout to Webui
This commit is contained in:
parent
2c434624c6
commit
21e8166c4b
1 changed files with 9 additions and 3 deletions
|
@ -374,6 +374,13 @@ String processor(const String& var) {
|
||||||
|
|
||||||
// Show version number
|
// Show version number
|
||||||
content += "<h4>Software: " + String(version_number) + "</h4>";
|
content += "<h4>Software: " + String(version_number) + "</h4>";
|
||||||
|
// Show hardware used:
|
||||||
|
#ifdef HW_LILYGO
|
||||||
|
content += "<h4>Hardware: LilyGo T-CAN485</h4>";
|
||||||
|
#endif
|
||||||
|
#ifdef HW_STARK
|
||||||
|
content += "<h4>Hardware: Stark CMR Module</h4>";
|
||||||
|
#endif
|
||||||
content += "<h4>Uptime: " + uptime_formatter::getUptime() + "</h4>";
|
content += "<h4>Uptime: " + uptime_formatter::getUptime() + "</h4>";
|
||||||
#ifdef FUNCTION_TIME_MEASUREMENT
|
#ifdef FUNCTION_TIME_MEASUREMENT
|
||||||
// Load information
|
// Load information
|
||||||
|
@ -395,9 +402,8 @@ String processor(const String& var) {
|
||||||
content += "<h4>SSID: " + String(ssid) + "</h4>";
|
content += "<h4>SSID: " + String(ssid) + "</h4>";
|
||||||
if (status == WL_CONNECTED) {
|
if (status == WL_CONNECTED) {
|
||||||
content += "<h4>IP: " + WiFi.localIP().toString() + "</h4>";
|
content += "<h4>IP: " + WiFi.localIP().toString() + "</h4>";
|
||||||
// Get and display the signal strength (RSSI)
|
// Get and display the signal strength (RSSI) and channel
|
||||||
content += "<h4>Signal Strength: " + String(WiFi.RSSI()) + " dBm</h4>";
|
content += "<h4>Signal strength: " + String(WiFi.RSSI()) + " dBm, at channel " + String(WiFi.channel()) + "</h4>";
|
||||||
content += "<h4>Channel: " + String(WiFi.channel()) + "</h4>";
|
|
||||||
} else {
|
} else {
|
||||||
content += "<h4>Wifi state: " + getConnectResultString(status) + "</h4>";
|
content += "<h4>Wifi state: " + getConnectResultString(status) + "</h4>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue