Skip to content

Commit 3191a44

Browse files
committed
foa_awdl: Added method to get the MAC address.
1 parent 3f59a75 commit 3191a44

File tree

3 files changed

+11
-41
lines changed

3 files changed

+11
-41
lines changed

examples/Cargo.lock

Lines changed: 6 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ heapless = "0.8.0"
2929
embedded-io-async = "0.6.1"
3030

3131
defmt = "0.3.10"
32-
reqwless = { version = "0.17.0", default-features = false, features = ["defmt"] }
32+
reqwless = { version = "0.13.0", default-features = false, features = ["defmt"] }
3333
# esp-mbedtls = { git = "https://github.com/esp-rs/esp-mbedtls.git", default-features = false, }
3434
rand_core = "0.9.3"
3535
embedded-io = "0.6.1"

foa_awdl/src/control.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ impl<Rng: RngCore> AwdlControl<'_, '_, Rng> {
9292
pub fn set_mac_address(&mut self, mac_address: [u8; 6]) {
9393
self.mac_address = MACAddress::new(mac_address);
9494
}
95+
/// Get the MAC address of the interface.
96+
pub fn mac_address(&self) -> [u8; 6] {
97+
*self.mac_address
98+
}
9599
/// Randomize the MAC address.
96100
///
97101
/// This will also return the MAC address.

0 commit comments

Comments
 (0)