modbus.disconnect() modbus.disconnect() Closes the master connection to the remote Modbus device. Example Copy modbus.disconnect();