PdCom5 Subscription

class pdcom5.Subscription(subscriber: pdcom5.Subscription.SubscriberBase, variable: Union[str, pdcom5._PdComWrapper.Variable], fut: _asyncio.Future, selector: Optional[pdcom5._PdComWrapper.Selector])
class State

Members:

Pending

Active

Invalid

property name
cancel()

Cancel a subscription.

async poll()

Poll an existing subscription.

This can for example be used to refresh an event-based subscription.

async read()

Wait for an update and return the new value.

Returns

tuple of (value, timestamp)

property state

The current state of the subscription.

property value

The current value.

property variable

The corresponding variable.