Expand description
Real-time streaming of sensor readings via BLE notifications.
This module provides functionality to subscribe to sensor readings and receive them as an async stream.
The stream supports graceful shutdown via the ReadingStream::close method,
which uses a cancellation token to cleanly stop the background polling task.
Structs§
- Reading
Stream - A stream of sensor readings from a device.
- Stream
Options - Options for reading streams.
- Stream
Options Builder - Builder for StreamOptions.
Traits§
- Device
Stream Ext - Extension trait for Device to create reading streams.
Functions§
- from_
device - Create a stream from a device without needing the trait import.
- from_
device_ default - Create a stream with default options from a device.
Type Aliases§
- Reading
Result - Result type for stream items.