1
0
mirror of https://github.com/FreeOpcUa/opcua-asyncio synced 2025-10-29 17:07:18 +08:00

Add: missing awaits from porting to asyncio

This commit is contained in:
Andreas Heine 2022-02-14 12:59:06 +01:00 committed by GitHub
parent c75f45d518
commit 61a81d1fe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,8 +113,8 @@ async def main():
print("Available loggers are: ", logging.Logger.manager.loggerDict.keys())
# enable following if you want to subscribe to nodes on server side
#handler = SubHandler()
#sub = server.create_subscription(500, handler)
#handle = sub.subscribe_data_change(myvar)
#sub = await server.create_subscription(500, handler)
#handle = await sub.subscribe_data_change(myvar)
# trigger event, all subscribed clients wil receive it
var = await myarrayvar.read_value() # return a ref to value in db server side! not a copy!
var = copy.copy(var) # WARNING: we need to copy before writting again otherwise no data change event will be generated