#
@@ -109,44 +117,42 @@ class WiFiStatus extends Component {
}
renderWiFiStatus(data, classes) {
- return (
+ return (
- {this.createListItems(data, classes)}
+ {this.createListItems(data, classes)}
);
-
}
render() {
- const { data, fetched, errorMessage, classes } = this.props;
-
+ const { data, fetched, errorMessage, classes } = this.props;
return (
{
- !fetched ?
-
-
-
- Loading...
+ !fetched ?
+
+
+
+ Loading...
-
- :
- data ? this.renderWiFiStatus(data, classes)
- :
-
-
- {errorMessage}
-
-
+ :
+ data ? this.renderWiFiStatus(data, classes)
+ :
+
+
+ {errorMessage}
+
+
-
- }
+
+ }
)
}
diff --git a/src/WiFiStatus.cpp b/src/WiFiStatus.cpp
index 0070fa5..5f27c38 100644
--- a/src/WiFiStatus.cpp
+++ b/src/WiFiStatus.cpp
@@ -55,6 +55,7 @@ void WiFiStatus::wifiStatus(AsyncWebServerRequest *request) {
root["status"] = (uint8_t) status;
if (status == WL_CONNECTED){
root["local_ip"] = WiFi.localIP().toString();
+ root["mac_address"] = WiFi.macAddress();
root["rssi"] = WiFi.RSSI();
root["ssid"] = WiFi.SSID();
root["bssid"] = WiFi.BSSIDstr();