pub struct BlePayload {
pub mac_address: [u8; 6],
pub short_name: Option<[u8; 10]>,
pub tx_power: Option<i8>,
pub battery_charge: Option<BatteryService>,
pub url: Option<UrlService>,
pub temperature: Option<TemperatureService>,
}Expand description
A structure to represent received BLE data.
Fields§
§mac_address: [u8; 6]§short_name: Option<[u8; 10]>§tx_power: Option<i8>§battery_charge: Option<BatteryService>§url: Option<UrlService>§temperature: Option<TemperatureService>Implementations§
Source§impl BlePayload
impl BlePayload
pub fn from_bytes(buf: &mut [u8], channel: u8) -> Option<Self>
Auto Trait Implementations§
impl Freeze for BlePayload
impl RefUnwindSafe for BlePayload
impl Send for BlePayload
impl Sync for BlePayload
impl Unpin for BlePayload
impl UnsafeUnpin for BlePayload
impl UnwindSafe for BlePayload
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more