An OPCUA Subscribe serves to monitor OPCUA variables (from a client) and provides a callback mechanism for changes. More...
#include <cvb/opcua/subscription.hpp>
Inherits enable_shared_from_this< Subscription >.
Public Member Functions | |
EventCookie | AddMonitoredItem (const VariableNode &node, std::function< void()> callback) |
Adds a monitored item to an existing subscription. More... | |
void | DeleteMonitoredItem (const EventCookie &cookie) |
Remove a monitored item from an existing subscription. More... | |
An OPCUA Subscribe serves to monitor OPCUA variables (from a client) and provides a callback mechanism for changes.
|
inline |
Adds a monitored item to an existing subscription.
[in] | node | OPCUA Variable that should be monitored. |
[in] | callback | Callback function pointer that is called when the value of the OPCUA Monitored Item changes. |
Any | exception derived from std::exception including CvbException and OpcUaException. |
|
inline |
Remove a monitored item from an existing subscription.
[in] | cookie | EventCookie of the MonitoredItem |
Any | exception derived from std::exception including CvbException and OpcUaException. |