7 modbus_close - close a Modbus connection
12 *void modbus_close(modbus_t *'ctx');*
17 The *modbus_close()* function shall close the connection established with the
18 backend set in the context.
23 There is no return value.
32 ctx = modbus_new_tcp("127.0.0.1", 502);
33 if (modbus_connect(ctx) == -1) {
34 fprintf(stderr, "Connection failed: %s\n", modbus_strerror(errno));
45 linkmb:modbus_connect[3]
50 The libmodbus documentation was written by Stéphane Raimbault
51 <stephane.raimbault@gmail.com>