7#include "open62541pp/config.hpp"
16#ifdef UA_ENABLE_METHODCALLS
49template <
typename CompletionToken = DefaultCompletionToken>
91template <
typename CompletionToken = DefaultCompletionToken>
101 request.methodsToCall = &item;
102 request.methodsToCallSize = 1;
109 std::forward<CompletionToken>(token)
UA_CallRequest wrapper class.
UA_CallResponse wrapper class.
The template class Result encapsulates a StatusCode and optionally a value.
View to a contiguous sequence of objects, similar to std::span in C++20.
UseFutureToken DefaultCompletionToken
Default completion token for async operations.
CallResponse call(Client &connection, const CallRequest &request) noexcept
Call server methods.
auto callAsync(Client &connection, const CallRequest &request, CompletionToken &&token=DefaultCompletionToken())
Asynchronously call server methods.
auto getSingleResult(Response &response) noexcept -> Result< decltype(std::ref(*response.results))>
auto sendRequest(Client &client, const Request &request, TransformResponse &&transformResponse, CompletionToken &&token)
UA_CallMethodRequest createCallMethodRequest(const NodeId &objectId, const NodeId &methodId, Span< const Variant > inputArguments) noexcept
Result< std::vector< Variant > > getOutputArguments(UA_CallMethodResult &result) noexcept
OPC UA services as free functions.