Skip to content
Start free evaluation

pdcomm_opcua_server_read_value

Function

Reads the Value attribute of a node as a local, authenticated user.

int32_t pdcomm_opcua_server_read_value(pdcomm_opcua_handle server, pdcomm_opcua_bytes node_id, pdcomm_opcua_handle *out)

Declared in: #include <pdcomm/opcua/pdcomm_opcua.h>

The result is an owned buffer with a Part 6 DataValue encoding. An unknown node is not an ABI failure: the DataValue carries BadNodeIdUnknown. This result has no response metadata.

Parameters

NameDescription
serverServer handle.
node_idEncoded NodeId in namespace 2, at most 4096 bytes.
outReceives the DataValue buffer handle.

Returns

#PDCOMM_OPCUA_OK, #PDCOMM_OPCUA_INVALID_INPUT, #PDCOMM_OPCUA_LIMIT, #PDCOMM_OPCUA_CLOSED, #PDCOMM_OPCUA_BUSY, #PDCOMM_OPCUA_INVALID_HANDLE or #PDCOMM_OPCUA_POISONED.