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
a9dfafb4
Commit
a9dfafb4
authored
Jan 02, 2020
by
Julien Prigent
Committed by
oroulet
Jan 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[subscription][monitored_items]: enhance client cache consistency
parent
ce818bd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
asyncua/common/subscription.py
asyncua/common/subscription.py
+6
-4
No files found.
asyncua/common/subscription.py
View file @
a9dfafb4
...
@@ -287,15 +287,17 @@ class Subscription:
...
@@ -287,15 +287,17 @@ class Subscription:
:param handle: The handle that was returned when subscribing to the node/nodes
:param handle: The handle that was returned when subscribing to the node/nodes
"""
"""
handles
=
[
handle
]
if
type
(
handle
)
is
int
else
handle
handles
=
[
handle
]
if
type
(
handle
)
is
int
else
handle
if
not
handles
:
return
params
=
ua
.
DeleteMonitoredItemsParameters
()
params
=
ua
.
DeleteMonitoredItemsParameters
()
params
.
SubscriptionId
=
self
.
subscription_id
params
.
SubscriptionId
=
self
.
subscription_id
params
.
MonitoredItemIds
=
handles
params
.
MonitoredItemIds
=
handles
results
=
await
self
.
server
.
delete_monitored_items
(
params
)
results
=
await
self
.
server
.
delete_monitored_items
(
params
)
results
[
0
].
check
()
results
[
0
].
check
()
for
k
,
v
in
self
.
_monitored_items
.
items
():
handle_map
=
{
v
.
server_handle
:
k
for
k
,
v
in
self
.
_monitored_items
.
items
()}
if
v
.
server_
handle
in
handles
:
for
handle
in
handles
:
del
(
self
.
_monitored_items
[
k
])
if
handle
in
handle_map
:
return
del
self
.
_monitored_items
[
handle_map
[
handle
]]
async
def
modify_monitored_item
(
self
,
handle
:
int
,
new_samp_time
,
new_queuesize
=
0
,
mod_filter_val
=-
1
):
async
def
modify_monitored_item
(
self
,
handle
:
int
,
new_samp_time
,
new_queuesize
=
0
,
mod_filter_val
=-
1
):
"""
"""
...
...
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