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)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
| Name | Description |
|---|---|
server | Server handle. |
node_id | Encoded NodeId in namespace 2, at most 4096 bytes. |
out | Receives 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.