TwclGattClientConnection.ReadDescriptorValue(TwclGattDescriptor,TwclGattOperationFlag,TwclGattProtectionLevel,TwclGattDescriptorValue) Method
The method reads the value of the specified descriptor.
public function ReadDescriptorValue(const Descriptor: TwclGattDescriptor; const Flag: TwclGattOperationFlag; const Protection: TwclGattProtectionLevel; out Value: TwclGattDescriptorValue): Integer;
Parameters
- Descriptor
- Type: TwclGattDescriptor
A TwclGattDescriptor obtained by previous call to the
ReadDescriptors
method. - Flag
- Type: TwclGattOperationFlag
Operation behavior flag.
- Protection
- Type: TwclGattProtectionLevel
Describes the required protection level.
- Value
- Type: TwclGattDescriptorValue
A descriptor's value.
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.