pub fn format_peripheral_id(id: &PeripheralId) -> StringExpand description
Format a peripheral ID as a string.
On macOS, peripheral IDs are UUIDs. On other platforms, they may be MAC addresses or other formats. This function extracts the useful identifier string.
§Example
ⓘ
use aranet_core::util::format_peripheral_id;
let id = peripheral.id();
let formatted = format_peripheral_id(&id);
println!("Device: {}", formatted);