Crate lego_powered_up

Source

Re-exports§

pub use crate::consts::IoTypeId;
pub use crate::iodevice::IoDevice;
pub use hubs::Hub;
pub use error::Error;
pub use error::OptionContext;
pub use error::Result;
pub use btleplug;
pub use futures;

Modules§

consts
Various constants defined by the specification, but translated into Rust types
error
hubs
Specific implementations for each of the supported hubs.
iodevice
notifications
Parser and data structure for hub notification messages
setup
Convenience functions

Macros§

device_trait
four_bytes
next
next_f32
next_i8
next_i16
next_i32
next_u16
next_u32
ok
two_bytes

Structs§

ConnectedHub
DiscoveredHub
Struct describing a discovered hub. This description may be passed to PoweredUp::create_hub to initialise a connection.
PoweredUp

Enums§

HubFilter
Properties by which to filter discovered hubs

Type Aliases§

HubMutex