Close a SeaIO module. This function will attempt to close a previously opened seaMaxModule and clear any local data. It will also close the connection interface (socket or tty) and clean up any local data. You must call this when you are finished with the module.
- Parameters
-
[in] | *SeaMaxPointer | the pointer to the previously opened seaMaxModule. |
- Returns
- int Error code.
- Return values
-
0 | Successfully closed module. |
References FTDI_DIRECT, MODBUS_RTU, and NO_CONNECT.
Referenced by CSeaMaxLin::Close(), and SeaMaxLinOpen().