brainwires-hardware 0.9.0

Hardware I/O for the Brainwires Agent Framework — audio, GPIO, Bluetooth, and network
Documentation
//! Bluetooth hardware discovery and scanning.
//!
//! Provides BLE advertisement scanning and adapter enumeration using
//! [`btleplug`](https://crates.io/crates/btleplug) for cross-platform support
//! (Linux/BlueZ, macOS CoreBluetooth, Windows WinRT).
//!
//! ## Quick start
//!
//! ```rust,no_run
//! use brainwires_hardware::bluetooth;
//! use std::time::Duration;
//!
//! #[tokio::main]
//! async fn main() {
//!     let adapters = bluetooth::list_adapters().await;
//!     println!("Adapters: {adapters:?}");
//!
//!     let devices = bluetooth::scan_ble(Duration::from_secs(5)).await;
//!     for d in &devices {
//!         println!("{} — {:?} ({:?} dBm)", d.address, d.name, d.rssi);
//!     }
//! }
//! ```

pub mod adapter;
pub mod scanner;
pub mod types;

pub use adapter::list_adapters;
pub use scanner::scan_ble;
pub use types::{BluetoothAdapter, BluetoothDevice, BluetoothDeviceKind};