open62541pp 0.16.0
C++ wrapper of open62541
|
This Service is used to call (invoke) a list of methods.
Functions | |
CallResponse | opcua::services::call (Client &connection, const CallRequest &request) noexcept |
template<typename CompletionToken > | |
auto | opcua::services::callAsync (Client &connection, const CallRequest &request, CompletionToken &&token) |
template<typename T > | |
CallMethodResult | opcua::services::call (T &connection, const NodeId &objectId, const NodeId &methodId, Span< const Variant > inputArguments) noexcept |
template<typename CompletionToken > | |
auto | opcua::services::callAsync (Client &connection, const NodeId &objectId, const NodeId &methodId, Span< const Variant > inputArguments, CompletionToken &&token) |
|
noexcept |
Call server methods.
connection | Instance of type Client |
request | Call request |
Referenced by opcua::Node< Connection >::callMethod().
auto opcua::services::callAsync | ( | Client & | connection, |
const CallRequest & | request, | ||
CompletionToken && | token ) |
Call server methods.
connection | Instance of type Client |
request | Call request |
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(CallResponse&)
|
void
if token
is a callback function (object)std::future<CallResponse>
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 49 of file method.hpp.
Referenced by opcua::services::callAsync(), and opcua::Node< Connection >::callMethodAsync().
|
noexcept |
auto opcua::services::callAsync | ( | Client & | connection, |
const NodeId & | objectId, | ||
const NodeId & | methodId, | ||
Span< const Variant > | inputArguments, | ||
CompletionToken && | token ) |
Call a server method.
The objectId
must have a HasComponent
reference to the method specified in methodId
.
connection | Instance of type Server or Client |
objectId | NodeId of the object on which the method is invoked |
methodId | NodeId of the method to invoke |
inputArguments | Input argument values |
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(CallMethodResult&)
|
void
if token
is a callback function (object)std::future<CallMethodResult>
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 78 of file method.hpp.