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
f4377b6d
Commit
f4377b6d
authored
May 18, 2022
by
oroulet
Committed by
oroulet
May 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add create_subscription to sync server
parent
231b94cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
asyncua/sync.py
asyncua/sync.py
+8
-2
No files found.
asyncua/sync.py
View file @
f4377b6d
...
...
@@ -168,7 +168,7 @@ class Client:
return
"Sync"
+
self
.
aio_obj
.
__str__
()
__repr__
=
__str__
@
property
def
application_uri
(
self
):
return
self
.
aio_obj
.
application_uri
...
...
@@ -193,7 +193,7 @@ class Client:
def
set_password
(
self
,
pwd
:
str
):
self
.
aio_obj
.
set_password
(
pwd
)
@
syncmethod
async
def
load_private_key
(
self
,
path
:
str
,
password
:
Optional
[
Union
[
str
,
bytes
]]
=
None
,
extension
:
Optional
[
str
]
=
None
):
pass
...
...
@@ -353,6 +353,12 @@ class Server:
def
write_attribute_value
(
self
,
nodeid
,
datavalue
,
attr
=
ua
.
AttributeIds
.
Value
):
pass
def
create_subscription
(
self
,
period
,
handler
):
coro
=
self
.
aio_obj
.
create_subscription
(
period
,
_SubHandler
(
self
.
tloop
,
handler
))
aio_sub
=
self
.
tloop
.
post
(
coro
)
return
Subscription
(
self
.
tloop
,
aio_sub
)
class
EventGenerator
:
def
__init__
(
self
,
tloop
,
aio_evgen
):
...
...
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