int __stdcall SM_SetCommunications ( SM_HANDLE  handle,
int  baudrate,
int  parity 
)

Configures a Sealevel I/O module's communication parameters.

Parameters
[in]handleValid handle returned by SM_Open().
[in]baudrateDesired baudrate of the Sealevel I/O module.
[in]parityDesired parity.
Return values
0Successful completion.
-1Invalid SeaMAX handle.
-2Connection is not established. Check the provided Connection object state.
-3Error reading or writing to Modbus device.
-4Failed 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().

 
 
Generated on Mon Nov 26 2018.