Declaration
Visual C#:
int Connect();
Visual C++:
long Connect();
Visual Basic:
Private Sub Connect As Integer
Delphi:
function Connect : Integer;
Return Value
Return 1 if the operation was successful; otherwise return Error Code.
Remarks
Connect to the device. Only after successfully connected to your mobile phone, you may go to following steps. Before this method is called, you need to set the ConnectionMode property to Serial or Infrared or Bluetooth Communication. Set ConnectionProtocol property to AT Command or Nokia FBus or Nokia MBus protocol. If Serial Communication is applied, you must go further to set the ConnectionParameter properties. If the connection fails, you may call the GetLastError method to identify the failure reasons.
See Also Disconnect, CheckConnection, ConnectionMode, ConnectionParameter, ConnectionProtocol