modbus_client_misc.h
Modbus/TCP client.
void * modbusClientGetRequestPdu(ModbusClientContext *context)
Retrieve request PDU.
Definition: modbus_client_misc.c:375
error_t modbusClientFormatMbapHeader(ModbusClientContext *context, size_t length)
Format MBAP header.
Definition: modbus_client_misc.c:271
error_t modbusClientCheckResp(ModbusClientContext *context)
Check whether the received response matches the request.
Definition: modbus_client_misc.c:211
error_t modbusClientParseMbapHeader(ModbusClientContext *context)
Parse MBAP header.
Definition: modbus_client_misc.c:320
error_t modbusClientTransaction(ModbusClientContext *context)
Perform Modbus transaction.
Definition: modbus_client_misc.c:52
error_t modbusClientCheckTimeout(ModbusClientContext *context)
Determine whether a timeout error has occurred.
Definition: modbus_client_misc.c:417
TCP/IP stack core.
void * modbusClientGetResponsePdu(ModbusClientContext *context, size_t *length)
Retrieve response PDU.
Definition: modbus_client_misc.c:389