5 modbus_close - close a Modbus connection
10 void modbus_close(modbus_t *ctx);
15 The *modbus_close()* function shall close the connection established with the
16 backend set in the context.
20 There is no return value.
27 ctx = modbus_new_tcp("127.0.0.1", 502);
28 if (modbus_connect(ctx) == -1) {
29 fprintf(stderr, "Connection failed: %s\n", modbus_strerror(errno));
40 - [modbus_connect](modbus_connect)