open62541pp 0.16.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
SetPublishingMode service
Collaboration diagram for SetPublishingMode service:

Detailed Description

Enable/disable sending of notifications on subscriptions.

Disable publishing of NotificationMessages of the subscription doesn't discontinue the sending of keep-alive messages, nor change the monitoring mode.

See also
https://reference.opcfoundation.org/Core/Part4/v105/docs/5.13.4

Functions

SetPublishingModeResponse opcua::services::setPublishingMode (Client &connection, const SetPublishingModeRequest &request) noexcept
 
template<typename CompletionToken >
auto opcua::services::setPublishingModeAsync (Client &connection, const SetPublishingModeRequest &request, CompletionToken &&token)
 
StatusCode opcua::services::setPublishingMode (Client &connection, uint32_t subscriptionId, bool publishing) noexcept
 
template<typename CompletionToken >
auto opcua::services::setPublishingModeAsync (Client &connection, uint32_t subscriptionId, bool publishing, CompletionToken &&token)
 

Function Documentation

◆ setPublishingMode() [1/2]

SetPublishingModeResponse opcua::services::setPublishingMode ( Client & connection,
const SetPublishingModeRequest & request )
noexcept

Enable/disable publishing of notification messages of subscriptions.

Parameters
connectionInstance of type Client
requestSet publishing mode request

Referenced by opcua::services::setPublishingMode(), opcua::services::setPublishingMode(), and opcua::Subscription< Connection >::setPublishingMode().

◆ setPublishingModeAsync() [1/2]

template<typename CompletionToken >
auto opcua::services::setPublishingModeAsync ( Client & connection,
const SetPublishingModeRequest & request,
CompletionToken && token )

Enable/disable publishing of notification messages of subscriptions.

Parameters
connectionInstance of type Client
requestSet publishing mode request
tokenThe 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:
UA_SetPublishingModeResponse wrapper class.
Returns

Definition at line 270 of file subscription.hpp.

Referenced by opcua::services::setPublishingModeAsync(), and opcua::services::setPublishingModeAsync().

◆ setPublishingMode() [2/2]

StatusCode opcua::services::setPublishingMode ( Client & connection,
uint32_t subscriptionId,
bool publishing )
inlinenoexcept

Enable/disable publishing of notification messages of a single subscription.

Parameters
connectionInstance of type Client
subscriptionIdIdentifier of the subscription returned by createSubscription
publishingEnable/disable publishing

Definition at line 284 of file subscription.hpp.

◆ setPublishingModeAsync() [2/2]

template<typename CompletionToken >
auto opcua::services::setPublishingModeAsync ( Client & connection,
uint32_t subscriptionId,
bool publishing,
CompletionToken && token )

Enable/disable publishing of notification messages of a single subscription.

Parameters
connectionInstance of type Client
subscriptionIdIdentifier of the subscription returned by createSubscription
publishingEnable/disable publishing
tokenThe 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(StatusCode)
UA_StatusCode wrapper class.
Definition types.hpp:44
Returns

Definition at line 299 of file subscription.hpp.