apple-ble 0.2.2

A library for interfacing with apple devices via BLE.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

/// Wrapper around the bluer [session](bluer::Session) and [adapter](bluer::Adapter)
pub struct Session {
    pub session: bluer::Session,
    pub adapter: bluer::Adapter,
    pub mac_changed: bool
}
impl Session {
    /// Creates a new [Session](crate::Session)
    pub async fn new() -> bluer::Result<Self> {
        let session = bluer::Session::new().await?;
        let adapter = session.default_adapter().await?;
        Ok(Session { session, adapter, mac_changed: false })
    }
}