Skip to content

Commit

Permalink
feat(examples/device-metadata): show EUI-48
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Dec 10, 2024
1 parent f43c3aa commit 5efd600
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/device-metadata/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ fn main() {
} else {
info!("Device ID is unavailable.");
}
if let Ok(eui48) = ariel_os::identity::interface_eui48(0) {
info!("Device's first EUI-48 address: {=[u8]:02x}", eui48.as_ref());
}

exit(Ok(()));
}

0 comments on commit 5efd600

Please sign in to comment.