-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix calling stop monitored item callback. #132
Changes from 3 commits
ca01c5e
6baaf83
e321276
359555d
8cbb232
ad878f0
3abcbdc
d23848f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% extends "!layout.html" %} | ||
|
||
{%- block extrahead %} | ||
<meta name="google-site-verification" content="bUDMPBn4rTuF6NW-6pWLXWjl5q9l3UI83tZVFD6w0Zc" /> | ||
{% endblock %} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -582,8 +582,9 @@ namespace OpcUaStackServer | |
} | ||
|
||
// check monitored item list | ||
monitoredItemIds_.erase(it1); | ||
if (newMonitoredItemIds.size() > 0) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm sure that this functional used to work correctly. But judging the history of file it could never work at all. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've understood. The problem is only for duplication monitored items inside of a single subscription. I tested my application with different clients. |
||
monitoredItemIds_.insert(std::make_pair(baseNodeClass->nodeId().data(), monitoredItemIds)); | ||
monitoredItemIds_.insert(std::make_pair(baseNodeClass->nodeId().data(), newMonitoredItemIds)); | ||
return; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh , the same data will be inserted again. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not the same. |
||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, The ID is not deleted if only one ID exists in the list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, if there are other IDs, `newMonitoredItemIds' is not empty and I insert the rest IDs in L587.