open62541pp 0.16.0
C++ wrapper of open62541
|
Create and add a monitored item to a subscription.
Namespaces | |
namespace | opcua::services::detail |
Typedefs | |
using | opcua::services::DeleteMonitoredItemCallback = std::function<void(uint32_t subId, uint32_t monId)> |
using | opcua::services::DataChangeNotificationCallback |
using | opcua::services::EventNotificationCallback |
using opcua::services::DeleteMonitoredItemCallback = std::function<void(uint32_t subId, uint32_t monId)> |
MonitoredItem deletion callback.
subId | Subscription identifier |
monId | MonitoredItem identifier |
Definition at line 91 of file monitoreditem.hpp.
Data change notification callback.
subId | Subscription identifier (0U for local (server-side) monitored item) |
monId | MonitoredItem identifier |
value | Changed value |
Definition at line 99 of file monitoreditem.hpp.
Event notification callback.
subId | Subscription identifier (0U for local (server-side) monitored item) |
monId | MonitoredItem identifier |
eventFields | Event fields |
Definition at line 108 of file monitoreditem.hpp.
|
nodiscard |
Create and add monitored items to a subscription for data change notifications.
Don't use this function to monitor the EventNotifier
attribute. Create monitored items with createMonitoredItemsEvent instead.
connection | Instance of type Client |
request | Create monitored items request |
dataChangeCallback | Invoked when the monitored item is changed |
deleteCallback | Invoked when the monitored item is deleted |
auto opcua::services::createMonitoredItemsDataChangeAsync | ( | Client & | connection, |
const CreateMonitoredItemsRequest & | request, | ||
DataChangeNotificationCallback | dataChangeCallback, | ||
DeleteMonitoredItemCallback | deleteCallback, | ||
CompletionToken && | token ) |
Create and add monitored items to a subscription for data change notifications.
Don't use this function to monitor the EventNotifier
attribute. Create monitored items with createMonitoredItemsEvent instead.
connection | Instance of type Client |
request | Create monitored items request |
dataChangeCallback | Invoked when the monitored item is changed |
deleteCallback | Invoked when the monitored item is deleted |
token | The completion token that will be used to produce a completion handler, which will be called when the operation completes. Potential completion tokens include useFuture, useDeferred, useDetached, or a function (object) with the correct completion signature. The function signature of the completion handler must be: void(CreateMonitoredItemsResponse&)
UA_CreateMonitoredItemsResponse wrapper class. Definition types_composed.hpp:1966 |
void
if token
is a callback function (object)std::future<CreateMonitoredItemsResponse>
if token
is of type UseFutureTokenauto(auto&& token)
callable for deferred execution if token
is of type UseDeferredTokenvoid
if token
is of type UseDetachedToken Definition at line 161 of file monitoreditem.hpp.
Referenced by opcua::services::createMonitoredItemDataChangeAsync().
|
nodiscard |
Create and add a monitored item to a subscription for data change notifications.
Don't use this function to monitor the EventNotifier
attribute. Create a monitored item with createMonitoredItemEvent instead.
connection | Instance of type Server or Client |
subscriptionId | Identifier of the subscription returned by createSubscription. Use 0U for a local server-side monitored item. |
itemToMonitor | Item to monitor |
monitoringMode | Monitoring mode |
parameters | Monitoring parameters |
dataChangeCallback | Invoked when the monitored item is changed |
deleteCallback | Invoked when the monitored item is deleted |
Referenced by opcua::Subscription< Connection >::subscribeDataChange().
auto opcua::services::createMonitoredItemDataChangeAsync | ( | Client & | connection, |
uint32_t | subscriptionId, | ||
const ReadValueId & | itemToMonitor, | ||
MonitoringMode | monitoringMode, | ||
const MonitoringParametersEx & | parameters, | ||
DataChangeNotificationCallback | dataChangeCallback, | ||
DeleteMonitoredItemCallback | deleteCallback, | ||
CompletionToken && | token ) |
token | The completion token that will be used to produce a completion handler, which will be called when the operation completes. Potential completion tokens include useFuture, useDeferred, useDetached, or a function (object) with the correct completion signature. The function signature of the completion handler must be: void(MonitoredItemCreateResult&)
UA_MonitoredItemCreateResult wrapper class. Definition types_composed.hpp:1920 |
void
if token
is a callback function (object)std::future<MonitoredItemCreateResult>
if token
is of type UseFutureTokenauto(auto&& token)
callable for deferred execution if token
is of type UseDeferredTokenvoid
if token
is of type UseDetachedToken Definition at line 237 of file monitoreditem.hpp.
|
nodiscard |
Create and add monitored items to a subscription for event notifications.
The attributeId
of ReadValueId must be set to AttributeId::EventNotifier.
connection | Instance of type Client |
request | Create monitored items request |
eventCallback | Invoked when an event is published |
deleteCallback | Invoked when the monitored item is deleted |
auto opcua::services::createMonitoredItemsEventAsync | ( | Client & | connection, |
const CreateMonitoredItemsRequest & | request, | ||
EventNotificationCallback | eventCallback, | ||
DeleteMonitoredItemCallback | deleteCallback, | ||
CompletionToken && | token ) |
Create and add monitored items to a subscription for event notifications.
The attributeId
of ReadValueId must be set to AttributeId::EventNotifier.
connection | Instance of type Client |
request | Create monitored items request |
eventCallback | Invoked when an event is published |
deleteCallback | Invoked when the monitored item is deleted |
token | The completion token that will be used to produce a completion handler, which will be called when the operation completes. Potential completion tokens include useFuture, useDeferred, useDetached, or a function (object) with the correct completion signature. The function signature of the completion handler must be: void(CreateMonitoredItemsResponse&)
|
void
if token
is a callback function (object)std::future<CreateMonitoredItemsResponse>
if token
is of type UseFutureTokenauto(auto&& token)
callable for deferred execution if token
is of type UseDeferredTokenvoid
if token
is of type UseDetachedToken Definition at line 290 of file monitoreditem.hpp.
Referenced by opcua::services::createMonitoredItemEventAsync().
|
nodiscard |
Create and add a monitored item to a subscription for event notifications.
The attributeId
of ReadValueId must be set to AttributeId::EventNotifier.
connection | Instance of type Client |
subscriptionId | Identifier of the subscription returned by createSubscription |
itemToMonitor | Item to monitor |
monitoringMode | Monitoring mode |
parameters | Monitoring parameters |
eventCallback | Invoked when an event is published |
deleteCallback | Invoked when the monitored item is deleted |
Referenced by opcua::Subscription< Connection >::subscribeEvent().
auto opcua::services::createMonitoredItemEventAsync | ( | Client & | connection, |
uint32_t | subscriptionId, | ||
const ReadValueId & | itemToMonitor, | ||
MonitoringMode | monitoringMode, | ||
const MonitoringParametersEx & | parameters, | ||
EventNotificationCallback | eventCallback, | ||
DeleteMonitoredItemCallback | deleteCallback, | ||
CompletionToken && | token ) |
Create and add a monitored item to a subscription for event notifications.
The attributeId
of ReadValueId must be set to AttributeId::EventNotifier.
connection | Instance of type Client |
subscriptionId | Identifier of the subscription returned by createSubscription |
itemToMonitor | Item to monitor |
monitoringMode | Monitoring mode |
parameters | Monitoring parameters |
eventCallback | Invoked when an event is published |
deleteCallback | Invoked when the monitored item is deleted |
token | The completion token that will be used to produce a completion handler, which will be called when the operation completes. Potential completion tokens include useFuture, useDeferred, useDetached, or a function (object) with the correct completion signature. The function signature of the completion handler must be: void(MonitoredItemCreateResult&)
|
void
if token
is a callback function (object)std::future<MonitoredItemCreateResult>
if token
is of type UseFutureTokenauto(auto&& token)
callable for deferred execution if token
is of type UseDeferredTokenvoid
if token
is of type UseDetachedToken Definition at line 362 of file monitoreditem.hpp.