open62541pp 0.16.0
C++ wrapper of open62541
|
Create subscriptions.
Subscriptions monitor a set of monitored items for notifications and return them to the client.
Namespaces | |
namespace | opcua::services::detail |
Typedefs | |
using | opcua::services::DeleteSubscriptionCallback = std::function<void(uint32_t subId)> |
using | opcua::services::StatusChangeNotificationCallback |
using opcua::services::DeleteSubscriptionCallback = std::function<void(uint32_t subId)> |
Subscription deletion callback.
subId | Subscription identifier |
Definition at line 71 of file subscription.hpp.
Subscription status change notification callback.
subId | Subscription identifier |
notification | Status change notification |
Definition at line 78 of file subscription.hpp.
|
nodiscard |
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 |
|
nodiscardnoexcept |
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_composed.hpp:2232 |
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.