TwclGattClient.FindCharacteristic(TwclGattService,TwclGattUuid,TwclGattCharacteristic,TwclGattOperationFlag) Method

The method searches the characteristic in given service with the specified UUID.

Namespace: wclBluetooth
public
 function FindCharacteristic(const Service: TwclGattService;
 const Uuid: TwclGattUuid; out Characteristic: TwclGattCharacteristic;
 const Flag: TwclGattOperationFlag = goNone): Integer;

Parameters

Service
Type: TwclGattService

The GATT services.

Uuid
Type: TwclGattUuid

The required characteristic's UUID.

Characteristic
Type: TwclGattCharacteristic

If the method completed with success on output contains the required characteristic. If the method failed the value is undefined.

Flag
Type: TwclGattOperationFlag

Operation behavior flag.

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.