 | wclSerialClientConnect(String, wclMessageProcessingMethod) Method |
Opens a connection to a specified serial port.
Namespace: wclSerialFrameworkAssembly: wclSerialFramework (in wclSerialFramework.dll) Version: 8.0.6.0
Syntaxpublic int Connect(
string DeviceName,
wclMessageProcessingMethod MessageProcessing = wclMessageProcessingMethod.mpSync
)
Public Function Connect (
DeviceName As String,
Optional MessageProcessing As wclMessageProcessingMethod = wclMessageProcessingMethod.mpSync
) As Integer
public:
int Connect(
String^ DeviceName,
wclMessageProcessingMethod MessageProcessing = wclMessageProcessingMethod::mpSync
)
Parameters
- DeviceName String
-
A serial device name.
- MessageProcessing wclMessageProcessingMethod (Optional)
-
A message processing method that should be used by the connection.
Return Value
Int32
If the method completed with success the return value is
WCL_E_SUCCESS. Otherwise the method returns one of the
WCL error codes.
See Also