-
Dear community, i migrate my old freeopcua code to opcua-asyncio. Under freeopcua the following worked well (pseudo code):
In opcua-asyncio the code seems to working similarly (nodes will be subscribed, [function call takes different time with different amount of nodes subscribe to, equal to the amount in the freeopcua implementation]), but the datachange_notification on the Subhandler is never called. With UAExpert the changes on the same node can be monitored as usual, freeopcua implementation works as usual, but only the opcua-asyncio implementation seems to be not working. Is there something different in reinitializing the nodes from plain txt, is there more to do? new code:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found the culprit in order to port my code from freeopcua to opcua-asyncio, the while pass loop prevented asyncio to retrieve any events. Just use: #1618 (comment) |
Beta Was this translation helpful? Give feedback.
Found the culprit in order to port my code from freeopcua to opcua-asyncio, the while pass loop prevented asyncio to retrieve any events. Just use: #1618 (comment)
to wait for events instead of a traditional while true pass loop.