Query: modbus_close
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MODBUS_CLOSE(3) Libmodbus Manual MODBUS_CLOSE(3)NAMEmodbus_close - close a Modbus connectionSYNOPSISvoid modbus_close(modbus_t *ctx);DESCRIPTIONThe modbus_close() function shall close the connection established with the backend set in the context.RETURN VALUEThere is no return value.EXAMPLEmodbus_t *ctx; ctx = modbus_new_tcp("127.0.0.1", 502); if (modbus_connect(ctx) == -1) { fprintf(stderr, "Connection failed: %s ", modbus_strerror(errno)); modbus_free(ctx); return -1; } modbus_close(ctx); modbus_free(ctx);SEE ALSOmodbus_connect(3)AUTHORSThe libmodbus documentation was written by Stephane Raimbault <stephane.raimbault@gmail.com[1]>NOTES1. stephane.raimbault@gmail.com mailto:stephane.raimbault@gmail.com libmodbus 3.0.3 05/26/2012 MODBUS_CLOSE(3)
| Related Man Pages |
|---|
| modbus_read_registers(3) - debian |
| modbus_new_tcp_pi(3) - debian |
| modbus_send_raw_request(3) - debian |
| modbus_rtu_get_serial_mode(3) - debian |
| modbus_set_response_timeout(3) - debian |
| Similar Topics in the Unix Linux Community |
|---|
| Adding the individual columns of a matrix. |
| awk or sed - Convert 2 lines to 1 line |
| One instance of comparing grep and awk |
| Weird 'find' results |
| My first PERL incarnation... Audio Oscillograph |