mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-07 00:37:04 +01:00
wifi: export func to serialize mac address
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user