Close a Modbus connection (TCP or RTU)
modbus_close(mbc)
the opened modbus connection
Close the Modbus connection referenced by mbc
mbc
mbc = modbus_newTcp("127.0.0.1", 502); modbus_close(mbc)