|
open62541pp 0.19.0
C++ wrapper of open62541
|
Create subscriptions.
Subscriptions monitor a set of monitored items for notifications and return them to the client.
Typedefs | |
| using | opcua::services::DeleteSubscriptionCallback = std::function< void(IntegerId subId)> |
| using | opcua::services::StatusChangeNotificationCallback = std::function< void(IntegerId subId, StatusChangeNotification ¬ification)> |
| using opcua::services::DeleteSubscriptionCallback = typedef std::function<void(IntegerId subId)> |
Subscription deletion callback.
| subId | Subscription identifier |
Definition at line 71 of file subscription.hpp.
| using opcua::services::StatusChangeNotificationCallback = typedef std::function<void(IntegerId subId, StatusChangeNotification& notification)> |
Subscription status change notification callback.
| subId | Subscription identifier |
| notification | Status change notification |
Definition at line 78 of file subscription.hpp.
| CreateSubscriptionResponse opcua::services::createSubscription | ( | Client & | connection, |
| const CreateSubscriptionRequest & | request, | ||
| StatusChangeNotificationCallback | statusChangeCallback, | ||
| DeleteSubscriptionCallback | deleteCallback | ||
| ) |
Create a subscription.
| connection | Instance of type Client |
| request | Create subscription request |
| statusChangeCallback | Invoked when the status of a subscription is changed |
| deleteCallback | Invoked when the subscription is deleted |
|
noexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| auto opcua::services::createSubscriptionAsync | ( | Client & | connection, |
| const CreateSubscriptionRequest & | request, | ||
| StatusChangeNotificationCallback | statusChangeCallback, | ||
| DeleteSubscriptionCallback | deleteCallback, | ||
| CompletionToken && | token | ||
| ) |
Create a subscription.
| connection | Instance of type Client |
| request | Create subscription request |
| statusChangeCallback | Invoked when the status of a subscription is changed |
| deleteCallback | Invoked when the subscription 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(CreateSubscriptionResponse&)
UA_CreateSubscriptionResponse wrapper class. Definition types.hpp:2293 |
void if token is a callback function (object)std::future<CreateSubscriptionResponse> 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 124 of file subscription.hpp.
Referenced by opcua::services::createSubscriptionAsync().
| auto opcua::services::createSubscriptionAsync | ( | Client & | connection, |
| const SubscriptionParameters & | parameters, | ||
| bool | publishingEnabled, | ||
| StatusChangeNotificationCallback | statusChangeCallback, | ||
| DeleteSubscriptionCallback | deleteCallback, | ||
| CompletionToken && | token | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 163 of file subscription.hpp.