TwclGattClient.Connect(TwclBluetoothRadio) Method
Connects to a remote Bluetooth LE device.
public function Connect(const Radio: TwclBluetoothRadio): Integer;
Parameters
- Radio
- Type: TwclBluetoothRadio
The TwclBluetoothRadio object used to communicate with a remote Bluetooth device.
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 connection to a remote Bluetooth LE device.
When connection operation completed the OnConnected
event will
fire. The operation result will be passed into the OnConnected
event.