class documentation
Centrally manages all OPC UA subscription needs.
It bundles subscriptions using only one subscription to an OPC UA server to not stay within max. subscription limits of certain OPC UA servers.
| Method | __init__ |
Create a new instance. |
| Async Method | clear |
Undocumented |
| Async Method | datachange |
Handle OPC UA data change notifications callback. |
| Async Method | event |
Handle OPC UA event notifications callback. |
| Async Method | init |
Undocumented |
| Async Method | status |
Handle OPC UA status notifications callback. |
| Async Method | subscribe |
Add given handler to receive data change notifications for given nodes. |
| Async Method | subscribe |
Add given handler to receive event notifications for given node. |
| Instance Variable | logger |
Undocumented |
| Instance Variable | period |
Publishing interval in milliseconds for OPC UA subscription. |
| Property | no |
Return the number of monitored nodes. |
| Async Method | _create |
Undocumented |
| Instance Variable | _data |
Maps a OPC UA node to a list of handlers for data change notifications. |
| Instance Variable | _event |
Maps a OPC UA node to a list of handlers for event notifications. |
| Instance Variable | _ua |
Undocumented |
| Instance Variable | _ua |
Undocumented |
async def subscribe_data_change(self, handler:
UaDataChangeSubscriber, nodes: Node | NodeId | Iterable[ Node | NodeId]):
¶
Add given handler to receive data change notifications for given nodes.