pub trait Api: Support<bool> {
    // Required methods
    fn enable(event: &Event) -> Result<(), Error>;
    fn disable(event: &Event) -> Result<(), Error>;
    fn read_advertisement(packet: &mut Advertisement) -> Result<bool, Error>;
}
Available on crate features internal-api-radio and api-radio-ble only.
Expand description

BLE interface.

Required Methods§

source

fn enable(event: &Event) -> Result<(), Error>

Enables BLE events.

source

fn disable(event: &Event) -> Result<(), Error>

Disables BLE events.

source

fn read_advertisement(packet: &mut Advertisement) -> Result<bool, Error>

Reads the next advertisement packet, if any.

Returns whether a packet was read.

Object Safety§

This trait is not object safe.

Implementors§