Bluetooth Framework
ContentsIndexHome
PreviousUpNext
TwclGattClient.Connect Method

Connects to a remote Bluetooth LE device.

Syntax
Pascal
function Connect(const Radio: TwclBluetoothRadio): Integer;
Parameters 
Description 
const Radio: TwclBluetoothRadio 
The TwclBluetoothRadio object used to communicate with a remote Bluetooth device.  

If the function succeed the return value is 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.

Copyright (c) 2006-2019. All rights reserved.