hap-ble 0.1.0

HomeKit Accessory Protocol (HAP) Bluetooth LE transport: discover, pair, read, and stream events from HomeKit accessories over BLE.
Documentation
//! HomeKit Accessory Protocol (HAP) **Bluetooth LE** transport.
//!
//! Discover, pair with, read from, and stream events off a HomeKit accessory
//! over BLE, reusing the pairing crypto from [`hap_crypto`], the TLV8 codec
//! from [`hap_tlv8`], and the attribute model from [`hap_model`].
//!
//! This is Milestone A: a standalone transport. Unifying it with the IP
//! `hap_controller` under one `HapController` is Milestone B.
#![forbid(unsafe_code)]

mod accessory;
mod advert;
mod bluest_gatt;
mod broadcast_state;
mod controller;
mod db;
mod discovery;
mod error;
mod gatt;
mod pairing;
mod pdu;
mod session;

pub use accessory::{BleAccessory, CharacteristicEvent};
pub use advert::HapAdvert;
pub use bluest_gatt::BluestConnection;
pub use broadcast_state::BleBroadcastState;
pub use controller::{BleController, Paired};
pub use discovery::{connect_gatt, scan, DiscoveredBleAccessory};
pub use error::{BleError, Result};
pub use gatt::{AdvertSource, GattCharacteristic, GattConnection, GattService, RawAdvert};

// Lower-crate types that appear in this crate's public API.
pub use hap_crypto::{AccessoryPairing, BroadcastKey, ControllerKeypair};
pub use hap_model::{
    format::{CharFormat, CharValue},
    tree::{Accessory, Characteristic, Service},
    CharacteristicType, ServiceType,
};