wifi: export func to serialize mac address

This commit is contained in:
Maxim Prokhorov
2024-06-13 21:55:27 +03:00
parent 4975a2382c
commit 8d569e19c0
2 changed files with 10 additions and 1 deletions

View File

@@ -91,6 +91,14 @@ enum class ApMode {
};
} // namespace wifi
namespace settings {
namespace internal {
String serialize(wifi::Mac);
} // namespace internal
} // namespace settings
} // namespace espurna
// Note that 'connected' status is *only* for the WiFi STA.

View File

@@ -179,7 +179,8 @@ void _wsUpdateSta(JsonObject& root) {
}
root[F("ssid")] = network.ssid;
root[F("bssid")] = network.bssid;
root[F("bssid")] =
::espurna::settings::internal::serialize(network.bssid);
root[F("channel")] = network.channel;
root[F("staip")] = ip.toString();
}