1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! This crate provides a BLE Transport for Ockam's Routing Protocol.
//! Please read the support [documentation](./documentation.md) for more information.
#![deny(
    //missing_docs,
    dead_code,
    trivial_casts,
    trivial_numeric_casts,
    unsafe_code,
    unused_import_braces,
    unused_qualifications
)]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(target = "mips", feature(asm))]
#![cfg_attr(target = "mips", feature(asm_experimental_arch))]

#[cfg(feature = "std")]
extern crate core;

#[cfg_attr(feature = "alloc", macro_use)]
extern crate alloc;

#[macro_use]
extern crate tracing;

pub mod driver;
mod error;
mod macros;
mod router;
mod transport;
mod types;
mod workers;

use ockam_core::TransportType;

pub use driver::{BleClient, BleServer};
pub use transport::BleTransport;
pub use types::*;

/// BLE address type constant
pub const BLE: TransportType = TransportType::new(4);

pub(crate) const CLUSTER_NAME: &str = "_internals.transport.ble";