Add RSSI to info (#434)
This commit is contained in:
parent
2fe2b3c975
commit
ef4ec16860
@ -98,7 +98,7 @@
|
||||
|
||||
|
||||
//version code in format yymmddb (b = daily build)
|
||||
#define VERSION 2001051
|
||||
#define VERSION 2001052
|
||||
char versionString[] = "0.9.0-b2";
|
||||
|
||||
|
||||
|
@ -257,6 +257,8 @@ void serializeInfo(JsonObject root)
|
||||
|
||||
JsonObject wifi_info = root.createNestedObject("wifi");
|
||||
wifi_info["bssid"] = WiFi.BSSIDstr();
|
||||
int qrssi = WiFi.RSSI();
|
||||
wifi_info["rssi"] = qrssi;
|
||||
wifi_info["signal"] = getSignalQuality(WiFi.RSSI());
|
||||
wifi_info["channel"] = WiFi.channel();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user