Module events

Source
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§

DeviceId
Device identifier for events.
EventDispatcher
Event dispatcher for sending events to multiple receivers.

Enums§

DeviceEvent
Events that can be emitted by devices.
DisconnectReason
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§

EventReceiver
Receiver for device events.
EventSender
Sender for device events.