Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
033427b6
Commit
033427b6
authored
Feb 14, 2022
by
Andreas Heine
Committed by
oroulet
Feb 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add: missing awaits from porting to asyncio
parent
c75f45d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/server-example.py
examples/server-example.py
+2
-2
No files found.
examples/server-example.py
View file @
033427b6
...
@@ -113,8 +113,8 @@ async def main():
...
@@ -113,8 +113,8 @@ async def main():
print
(
"Available loggers are: "
,
logging
.
Logger
.
manager
.
loggerDict
.
keys
())
print
(
"Available loggers are: "
,
logging
.
Logger
.
manager
.
loggerDict
.
keys
())
# enable following if you want to subscribe to nodes on server side
# enable following if you want to subscribe to nodes on server side
#handler = SubHandler()
#handler = SubHandler()
#sub = server.create_subscription(500, handler)
#sub =
await
server.create_subscription(500, handler)
#handle = sub.subscribe_data_change(myvar)
#handle =
await
sub.subscribe_data_change(myvar)
# trigger event, all subscribed clients wil receive it
# 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
=
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
var
=
copy
.
copy
(
var
)
# WARNING: we need to copy before writting again otherwise no data change event will be generated
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment