pdcomm_modbus_status
Enum
Status code returned by every int32_t Modbus C ABI function.
enum pdcomm_modbus_statusThe values are ABI-stable. They describe the library call, not the Modbus protocol: a Modbus exception response is a successful call whose reply reports "status":"exception".
Members
PDCOMM_MODBUS_BUFFER_TOO_SMALL
Enumerator
The output capacity is smaller than the data. The required size is reported and the output is unchanged.
PDCOMM_MODBUS_BUFFER_TOO_SMALL = 4PDCOMM_MODBUS_INTERNAL_ERROR
Enumerator
An internal failure, such as a contained panic or a poisoned endpoint lock. Release the endpoint and create a new one.
PDCOMM_MODBUS_INTERNAL_ERROR = 3PDCOMM_MODBUS_INVALID_HANDLE
Enumerator
The handle is zero, released, unknown or of the wrong kind.
PDCOMM_MODBUS_INVALID_HANDLE = 2PDCOMM_MODBUS_INVALID_INPUT
Enumerator
A pointer, size or JSON document is invalid; nothing was changed.
PDCOMM_MODBUS_INVALID_INPUT = 1PDCOMM_MODBUS_OK
Enumerator
The call succeeded.
PDCOMM_MODBUS_OK = 0PDCOMM_MODBUS_SERVICE_ERROR
Enumerator
The command ran and failed, for example with a timeout, a refused connection or an invalid configuration. An owned error buffer is returned.
PDCOMM_MODBUS_SERVICE_ERROR = 5