Add RSSI to info (#434)

This commit is contained in:
cschwinne 2020-01-06 00:43:15 +01:00
parent 2fe2b3c975
commit ef4ec16860
2 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,7 @@
//version code in format yymmddb (b = daily build) //version code in format yymmddb (b = daily build)
#define VERSION 2001051 #define VERSION 2001052
char versionString[] = "0.9.0-b2"; char versionString[] = "0.9.0-b2";

View File

@ -257,6 +257,8 @@ void serializeInfo(JsonObject root)
JsonObject wifi_info = root.createNestedObject("wifi"); JsonObject wifi_info = root.createNestedObject("wifi");
wifi_info["bssid"] = WiFi.BSSIDstr(); wifi_info["bssid"] = WiFi.BSSIDstr();
int qrssi = WiFi.RSSI();
wifi_info["rssi"] = qrssi;
wifi_info["signal"] = getSignalQuality(WiFi.RSSI()); wifi_info["signal"] = getSignalQuality(WiFi.RSSI());
wifi_info["channel"] = WiFi.channel(); wifi_info["channel"] = WiFi.channel();