TwclGattClientConnection.ReadDescriptors(TwclGattCharacteristic,TwclGattOperationFlag,TwclGattDescriptors) Method
The method reads all the descriptors available for the specified characteristic.
public function ReadDescriptors(const Characteristic: TwclGattCharacteristic; const Flag: TwclGattOperationFlag; out Descriptors: TwclGattDescriptors): Integer;
Parameters
- Characteristic
- Type: TwclGattCharacteristic
A TwclGattCharacteristic structure obtained by previous call to the
ReadCaracteristics
method. - Flag
- Type: TwclGattOperationFlag
Operation behavior flag.
- Descriptors
- Type: TwclGattDescriptors
On output contains the list of the characteristic's descriptors.
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.