class documentation

class _MonitoredItem(Generic[_HandlerType]):

Known subclasses: core.subscription_manager._MonitoredEventItem

View In Hierarchy

Undocumented

Method add_handlers Add given handlers if they are not already in the handlers list.
Class Variable handle Monitored item ID as returned by asyncua. Is None when renew failed.
Class Variable handlers List of handler that are subscribed to the monitored item. Shall not contain duplicates.
def add_handlers(self, handlers: Iterable[_HandlerType]):

Add given handlers if they are not already in the handlers list.

handle: int | None =

Monitored item ID as returned by asyncua. Is None when renew failed.

Goes stale when asyncua recreates the subscription on auto-reconnect, see SubscriptionManager._refresh_handles.

handlers: list[_HandlerType] =

List of handler that are subscribed to the monitored item. Shall not contain duplicates.