Add Wifi BSSID as SYSdata (#1194)

* Add Wifi BSSID as SYSdata

Publish BSSID as a SYS sensor.
This commit is contained in:
CY authored and GitHub committed 2022-03-30 23:56:34 -05:00
1 parent 4fc6273fd3
commit e43f7b3c15
1 file changed
+3 -1
+3 -1
View File
@@ -1556,6 +1556,8 @@ void stateMeasures() {
SYSdata["rssi"] = rssi;
String SSID = WiFi.SSID();
SYSdata["SSID"] = SSID;
String BSSID = WiFi.BSSIDstr();
SYSdata["BSSID"] = BSSID;
SYSdata["ip"] = ip2CharArray(WiFi.localIP());
String mac = WiFi.macAddress();
SYSdata["mac"] = (char*)mac.c_str();
@@ -2138,4 +2140,4 @@ void watchdogReboot(byte reason) {
ESP.reset();
#else // Insert other architectures here
#endif
}
}