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

Configures the local PC's serial port baudrate (For Serial Connections Only).

Parameters
[in]handleValid handle returned by SM_Open().
[in]baudrate
[in]parity
Return values
0Successful.
-1Invalid SeaMAX handle.
-2Connection not established.
-3Current connection is non-serial.
-4Could not configure serial connection, possible invalid parameter.

This function configures the PC's local serial port connection speed and parity - it does not configure any communication rates or parameters on the module itself.

In order to configure a module's communication parameters, see SM_SetCommunications().

See also
Baudrate Values, Parity Values
 
 
Generated on Mon Nov 26 2018.