table of contents
MODBUS_REPLY(3) | Libmodbus Manual | MODBUS_REPLY(3) |
NAME¶
modbus_reply - send a reponse to the received requestSYNOPSIS¶
*int modbus_reply(modbus_t * ctx, const uint8_t *req, int req_length, modbus_mapping_t * mb_mapping);DESCRIPTION¶
The modbus_reply() function shall send a response to received request. The request req given in argument is analyzed, a response is then built and sent by using the information of the modbus context ctx.RETURN VALUE¶
The modbus_reply() function shall return the length of the response sent if successful. Otherwise it shall return -1 and set errno.ERRORS¶
EMBMDATASending has failed
SEE ALSO¶
modbus_reply_exception(3) libmodbus(7)AUTHORS¶
The libmodbus documentation was written by Stéphane Raimbault < stephane.raimbault@gmail.com[1]>NOTES¶
- 1.
- stephane.raimbault@gmail.com
mailto:stephane.raimbault@gmail.com
05/26/2012 | libmodbus 3.0.3 |