KylixSMS .NET Component 6.3  Developer's Guide

KylixSMS.Device.Connect Method


Namespace: KylixSMSComponent
Assembly: KylixSMS.Device (in KylixSMS.dll)
 
Syntax
Visual C#:
public enumError Connect();

Visual Basic:
Public Function Connect() As enumError

Description
The Connect method opens the serial communication port specified in the Port property, then try to connect to device.

Return Value
Return enumError.ERR_NONE if the operation was successful; otherwise return enumError.

Remarks
Before calling this method, you need to set KylixSMS.Protocol, KylixSMS.Port and KylixSMS.Baudrate properties. If the connection fails, call GetErrInfo(ErrorCode) function to identify the failure reasons.

See Also Disconnect, GetDevStatus, KylixSMS.Port, KylixSMS.Protocol, KylixSMS.Baudrate