Expand description
Device event system for connection and reading notifications.
This module provides an event-based system for receiving notifications about device connections, disconnections, readings, and errors.
Structs§
- Device
Id - Device identifier for events.
- Event
Dispatcher - Event dispatcher for sending events to multiple receivers.
Enums§
- Device
Event - Events that can be emitted by devices.
- Disconnect
Reason - Reason for disconnection.
Functions§
- default_
event_ channel - Create a default event channel with capacity 100.
- event_
channel - Create a new event channel with the given capacity.
Type Aliases§
- Event
Receiver - Receiver for device events.
- Event
Sender - Sender for device events.