Configures a Sealevel I/O module's communication parameters.
- Parameters
-
| [in] | handle | Valid handle returned by SM_Open(). |
| [in] | baudrate | Desired baudrate of the Sealevel I/O module. |
| [in] | parity | Desired parity. |
- Return values
-
| 0 | Successful completion. |
| -1 | Invalid SeaMAX handle. |
| -2 | Connection is not established. Check the provided Connection object state. |
| -3 | Error reading or writing to Modbus device. |
| -4 | Failed to perform implicit "Get Module Configuration (0x45)" |
This method attempts to set the communications parameters of a Sealevel I/O module. The communications parameters of the host PC are not affected, and must be changed using the SM_ConfigureSerialConnection() method.
- Note
- This method may not be applicable to all I/O devices. SeaDAC Lite modules are not affected by this function.
- See also
- Baudrate Values, Parity Values
Referenced by CSeaMaxW32::Ioctl().