TwclWiiRemoteClientConnection.Connect(Int64,Cardinal) Method

Connects to a remote device.

Namespace: wclBluetooth
public
 function Connect(const Address: Int64;
 const Timeout: Cardinal = 10000): Integer;

Parameters

Address
Type: Int64

The remote Bluetooth device address.

Timeout
Type: Cardinal

The connect timeout in milliseconds. The default value is 10000 milliseconds.

Return Value

Type: Integer

If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

The method starts a connection operation to a remote device. If the method success that does not mean that the connection was established. That just means that the connection operation was started. The real connection result will be passed to the OnConnect event handler.

NOTE: BlueSoleil does not support Authentication and Encryption parameters per connection.