|
open62541pp 0.19.0
C++ wrapper of open62541
|
Create and add a monitored item to a subscription.
Typedefs | |
| using | opcua::services::DeleteMonitoredItemCallback = std::function< void(IntegerId subId, IntegerId monId)> |
| using | opcua::services::DataChangeNotificationCallback = std::function< void(IntegerId subId, IntegerId monId, const DataValue &value)> |
| using | opcua::services::EventNotificationCallback = std::function< void(IntegerId subId, IntegerId monId, Span< const Variant > eventFields)> |
| using opcua::services::DataChangeNotificationCallback = typedef std::function<void(IntegerId subId, IntegerId monId, const DataValue& value)> |
Data change notification callback.
| subId | Subscription identifier (0U for local (server-side) monitored item) |
| monId | MonitoredItem identifier |
| value | Changed value |
Definition at line 98 of file monitoreditem.hpp.
| using opcua::services::DeleteMonitoredItemCallback = typedef std::function<void(IntegerId subId, IntegerId monId)> |
MonitoredItem deletion callback.
| subId | Subscription identifier |
| monId | MonitoredItem identifier |
Definition at line 90 of file monitoreditem.hpp.
| using opcua::services::EventNotificationCallback = typedef std::function<void(IntegerId subId, IntegerId monId, Span<const Variant> eventFields)> |
Event notification callback.
| subId | Subscription identifier (0U for local (server-side) monitored item) |
| monId | MonitoredItem identifier |
| eventFields | Event fields |
Definition at line 107 of file monitoreditem.hpp.
| MonitoredItemCreateResult opcua::services::createMonitoredItemDataChange | ( | T & | connection, |
| IntegerId | subscriptionId, | ||
| const ReadValueId & | itemToMonitor, | ||
| MonitoringMode | monitoringMode, | ||
| const MonitoringParametersEx & | parameters, | ||
| DataChangeNotificationCallback | dataChangeCallback, | ||
| DeleteMonitoredItemCallback | deleteCallback | ||
| ) |
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, |
| IntegerId | 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.hpp:1993 |
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 236 of file monitoreditem.hpp.
| MonitoredItemCreateResult opcua::services::createMonitoredItemEvent | ( | Client & | connection, |
| IntegerId | subscriptionId, | ||
| const ReadValueId & | itemToMonitor, | ||
| MonitoringMode | monitoringMode, | ||
| const MonitoringParametersEx & | parameters, | ||
| EventNotificationCallback | eventCallback, | ||
| DeleteMonitoredItemCallback | deleteCallback = {} |
||
| ) |
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, |
| IntegerId | 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 361 of file monitoreditem.hpp.
| CreateMonitoredItemsResponse opcua::services::createMonitoredItemsDataChange | ( | Client & | connection, |
| const CreateMonitoredItemsRequest & | request, | ||
| DataChangeNotificationCallback | dataChangeCallback, | ||
| DeleteMonitoredItemCallback | deleteCallback | ||
| ) |
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.hpp:2037 |
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 160 of file monitoreditem.hpp.
Referenced by opcua::services::createMonitoredItemDataChangeAsync().
| CreateMonitoredItemsResponse opcua::services::createMonitoredItemsEvent | ( | Client & | connection, |
| const CreateMonitoredItemsRequest & | request, | ||
| EventNotificationCallback | eventCallback, | ||
| DeleteMonitoredItemCallback | deleteCallback | ||
| ) |
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 289 of file monitoreditem.hpp.
Referenced by opcua::services::createMonitoredItemEventAsync().