bluetooth_mesh 0.1.4

Cross-platform, full Bluetooth Mesh stack implemented in Rust. Following the Bluetooth Mesh Spec Core v1.0 by SIG. Designed to work with any almost any BLE radio (uses https://github.com/AndrewGi/btle/ for platform dependent Bluetooth drivers). While a stack is provided by the library, all the primatives and objects needed to customize and create your own stack are provided. See https://github.com/AndrewGi/BluetoothMeshRust for more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::uuid::UUID;
use crate::{beacon, timestamp};
use alloc::collections::BTreeSet;

#[derive(Copy, Clone, PartialOrd, PartialEq, Ord, Eq, Hash)]
pub struct BeaconSource {
    pub beacon: beacon::UnprovisionedDeviceBeacon,
    pub last_seen: timestamp::Timestamp,
}
impl BeaconSource {
    pub fn uuid(&self) -> &UUID {
        &self.beacon.uuid
    }
}
pub struct UnprovisionedBeacons {
    beacons: BTreeSet<BeaconSource>,
}