60template <
typename CompletionToken>
63 connection, request, std::forward<CompletionToken>(token)
68template <
typename CompletionToken>
73 CompletionToken&& token
78 std::forward<CompletionToken>(token)
99template <
typename CompletionToken>
105 CompletionToken&& token
114 std::forward<CompletionToken>(token)
157template <
typename CompletionToken>
160 connection, request, std::forward<CompletionToken>(token)
165template <
typename CompletionToken>
189template <
typename CompletionToken>
195 CompletionToken&& token
216template <AttributeId Attribute,
typename T>
220 .andThen(Handler::fromDataValue);
223template <AttributeId Attribute,
typename CompletionToken>
233 return std::move(result).andThen(Handler::fromDataValue);
235 std::forward<CompletionToken>(token)
240template <AttributeId Attribute,
typename T,
typename U>
243 return writeAttribute(connection,
id, Attribute, Handler::toDataValue(std::forward<U>(value)));
246template <AttributeId Attribute,
typename T,
typename U,
typename CompletionToken>
253 Handler::toDataValue(std::forward<U>(value)),
254 std::forward<CompletionToken>(token)
277template <
typename CompletionToken>
284 std::forward<CompletionToken>(token)
306template <
typename CompletionToken>
UA_DataValue wrapper class.
UA_ReadRequest wrapper class.
UA_ReadResponse 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.
UA_StatusCode wrapper class.
UA_WriteRequest wrapper class.
UA_WriteResponse wrapper class.
auto readDataValueAsync(Client &connection, const NodeId &id, CompletionToken &&token)
Read the AttributeId::Value attribute of a node as a DataValue object.
Result< DataValue > readDataValue(T &connection, const NodeId &id) noexcept
Read the AttributeId::Value attribute of a node as a DataValue object.
ReadResponse read(Client &connection, const ReadRequest &request) noexcept
Read one or more attributes of one or more nodes (client only).
Result< DataValue > readAttribute(T &connection, const NodeId &id, AttributeId attributeId, TimestampsToReturn timestamps) noexcept
Read node attribute.
auto readAttributeAsync(Client &connection, const NodeId &id, AttributeId attributeId, TimestampsToReturn timestamps, CompletionToken &&token)
Read node attribute.
auto readAsync(Client &connection, const ReadRequest &request, CompletionToken &&token)
Read one or more attributes of one or more nodes (client only).
StatusCode writeAttribute(T &connection, const NodeId &id, AttributeId attributeId, const DataValue &value) noexcept
Write node attribute.
auto writeAsync(Client &connection, const WriteRequest &request, CompletionToken &&token)
Write one or more attributes of one or more nodes (client only).
auto writeDataValueAsync(Client &connection, const NodeId &id, const DataValue &value, CompletionToken &&token)
Write the AttributeId::Value attribute of a node as a DataValue object.
auto writeAttributeAsync(Client &connection, const NodeId &id, AttributeId attributeId, const DataValue &value, CompletionToken &&token)
Write node attribute.
StatusCode writeDataValue(T &connection, const NodeId &id, const DataValue &value) noexcept
Write the AttributeId::Value attribute of a node as a DataValue object.
WriteResponse write(Client &connection, const WriteRequest &request) noexcept
Write one or more attributes of one or more nodes (client only).
UA_ReadRequest createReadRequest(TimestampsToReturn timestamps, UA_ReadValueId &item) noexcept
UA_ReadValueId createReadValueId(const NodeId &id, AttributeId attributeId) noexcept
UA_WriteRequest createWriteRequest(UA_WriteValue &item) noexcept
StatusCode writeAttributeImpl(T &connection, const NodeId &id, U &&value) noexcept
auto readAttributeAsyncImpl(Client &connection, const NodeId &id, CompletionToken &&token)
StatusCode getSingleStatus(const Response &response) noexcept
auto readAttributeImpl(T &connection, const NodeId &id) noexcept
auto sendRequestAsync(Client &client, const Request &request, CompletionToken &&token)
Async client service requests.
auto writeAttributeAsyncImpl(T &connection, const NodeId &id, U &&value, CompletionToken &&token)
UA_WriteValue createWriteValue(const NodeId &id, AttributeId attributeId, const DataValue &value) noexcept
Result< WrapperType > wrapSingleResult(Response &response) noexcept
OPC UA services as free functions.
TimestampsToReturn
Timestamps to return.
Client * asWrapper(UA_Client *client) noexcept
Convert native UA_Client pointer to its wrapper instance.
AttributeId
Attribute identifiers.
@ Value
The most recent value of the variable that the server has.
Attribute handler to convert DataValue objects to/from the attribute specific types.