Skip to content

Commit a80911e

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

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
@@ -139,6 +139,8 @@ pub mod utils {
139139
/// only need to use these two methods to connect to a radio. The `available_serial_ports` method
140140
/// can also be used to list all available serial ports on the host machine.
141141
pub mod stream {
142+
#[cfg(feature = "bluetooth-le")]
143+
pub use crate::connections::ble_handler::BleDevice;
142144
#[cfg(feature = "bluetooth-le")]
143145
pub use crate::connections::ble_handler::BleId;
144146
#[cfg(feature = "bluetooth-le")]

0 commit comments

Comments
 (0)