Bluetooth Framework
ContentsIndexHome
PreviousUpNext
TwclGattClientConnection.HalReadCharacteristicValue Method

Implements a hardware depended code for reading the value of the specified characteristic.

Syntax
Pascal
function HalReadCharacteristicValue(const Characteristic: TwclGattCharacteristic; const Flag: TwclGattOperationFlag; const Protection: TwclGattProtectionLevel; out Value: TwclGattCharacteristicValue): Integer; virtual; abstract;
Parameters 
Description 
const Characteristic: TwclGattCharacteristic 
A TwclGattCharacteristic structure obtained by previous call to the ReadCaracteristics method.  
const Flag: TwclGattOperationFlag 
Operation behaviour flag.  
const Protection: TwclGattProtectionLevel 
Describes the required protection level.  
out Value: TwclGattCharacteristicValue 
On output contains a characteristic's value as bytes array. An application is responsible to clean up a memory allocated for the dynamic array.  

If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

A derived class muts override this method.

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