Skip to content

Commit afd9fce

Browse files
committed
Make BleDevice public
Also add a few derives.
1 parent 4f25234 commit afd9fce

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/connections/ble_handler.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ impl Display for BleId {
8787
}
8888

8989
/// A Meshtastic device discovered via Bluetooth LE.
90+
#[derive(Clone, PartialEq, Eq)]
9091
pub struct BleDevice {
9192
/// The broadcast name of the device.
9293
pub name: Option<String>,

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ pub mod utils {
142142
#[cfg(feature = "bluetooth-le")]
143143
pub use crate::connections::ble_handler::BleId;
144144
#[cfg(feature = "bluetooth-le")]
145+
pub use crate::connections::ble_handler::BleDevice;
146+
#[cfg(feature = "bluetooth-le")]
145147
pub use crate::utils_internal::available_ble_devices;
146148
pub use crate::utils_internal::available_serial_ports;
147149
#[cfg(feature = "bluetooth-le")]

0 commit comments

Comments
 (0)