Skip to content

Commit

Permalink
Add remote address property to device (#151)
Browse files Browse the repository at this point in the history
The address on the device is the one parsed from the dbus object path which is not necessarily a resolved address
  • Loading branch information
edaniels authored Jul 15, 2024
1 parent 0115d07 commit 09aee08
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bluer/src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,13 @@ define_properties!(
get: (name, v => {v.to_owned()}),
);

/// The Bluetooth device address of the remote device.
property(
RemoteAddress, Address,
dbus: (INTERFACE, "Address", String, MANDATORY),
get: (remote_address, v => {v.parse()?}),
);

/// The Bluetooth device address type.
///
/// For dual-mode and
Expand Down

0 comments on commit 09aee08

Please sign in to comment.