diff --git a/tools/esp8266/html/index.html b/tools/esp8266/html/index.html index 201f13d7..c6db6ec9 100644 --- a/tools/esp8266/html/index.html +++ b/tools/esp8266/html/index.html @@ -17,6 +17,7 @@
Uptime:
ESP-Time:
+RSSI: dBm
Statistics:
@@ -48,6 +49,7 @@ var mIntervalSet = false; function parseSys(obj) { document.getElementById("version").innerHTML = "Git SHA: " + obj["build"] + " :: " + obj["version"]; + document.getElementById("wifi_rssi").innerHTML = obj["wifi_rssi"];; var date = new Date(obj["ts_now"] * 1000); var up = obj["ts_uptime"]; diff --git a/tools/esp8266/webApi.cpp b/tools/esp8266/webApi.cpp index 568646e2..dbccc6ec 100644 --- a/tools/esp8266/webApi.cpp +++ b/tools/esp8266/webApi.cpp @@ -123,6 +123,7 @@ void webApi::getSystem(JsonObject obj) { obj[F("build")] = String(AUTO_GIT_HASH); obj[F("ts_uptime")] = mApp->getUptime(); obj[F("ts_now")] = mApp->getTimestamp(); + obj[F("wifi_rssi")] = WiFi.RSSI(); }