|
Namemodbus_close - close a Modbus connection Synopsisvoid 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) {
See also
|