Trait wasefire_board_api::radio::ble::Api
source · 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§
sourcefn read_advertisement(packet: &mut Advertisement) -> Result<bool, Error>
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.