Defined in File ziAPI.h
ZIResult_enum ziAPISyncSetValueB(ZIConnection conn, const char *path, uint8_t *buffer, uint32_t *length, uint32_t bufferSize)#
Synchronously sets the binary-type value of one ore more nodes specified in the path.
This function sets the values at the nodes specified in a path. More than one value can be set if a wildcard is used. This function sets the value synchronously. After returning you know that it is set and to which value it is set.
conn – [in] Pointer to the ziConnection for which the value(s) will be set
path – [in] Path to the Node(s) for which the value(s) will be set
buffer – [in] Pointer to the byte array with the data
length – [in] Length of the data in the buffer
bufferSize – [in] Length of the data in the buffer
ZI_INFO_SUCCESS on success
ZI_ERROR_CONNECTION when the connection is invalid (not connected) or when a communication error occurred
ZI_ERROR_LENGTH if the Path’s Length exceeds MAX_PATH_LEN
ZI_ERROR_READONLY on attempt to set a read-only node
ZI_ERROR_COMMAND on an incorrect answer of the server
ZI_ERROR_SERVER_INTERNAL if an internal error occurred in the Data Server
ZI_WARNING_NOTFOUND if the given path could not be resolved or no node given by path is able to hold values
ZI_ERROR_TIMEOUT when communication timed out
Other return codes may also be returned, for a detailed error message use ziAPIGetLastError.