modbus.disconnect()

modbus.disconnect()

Closes the master connection to the remote Modbus device.

Example

modbus.disconnect();