TwclGattServer.Initialize(TwclBluetoothRadio) Method
Initializes Bluetooth LE GATT Server.
public function Initialize(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.
Before adding services and characteristics an application must initialize the server by calling this method.
This feature is supported on Windows 10 with the Microsoft Bluetooth drivers or on any other Windows platform with BlueSoleil Bluetooth drivers.