Bluetooth Framework
ContentsIndexHome
PreviousUpNext
CwclGattClient::ReadCharacteristicValue Method

The method reads the value of the specified characteristic.

Syntax
C++
int ReadCharacteristicValue(wclGattCharacteristic Characteristic, wclGattOperationFlag Flag, wclGattCharacteristicValue& Value, wclGattProtectionLevel Protection = plNone);
Parameters 
Description 
wclGattCharacteristic Characteristic 
A wclGattCharacteristic structure obtained by previous call to the ReadCaracteristics method.  
wclGattOperationFlag Flag 
Operation behaviour flag.  
wclGattCharacteristicValue& Value 
On output contains a characteristic's value as bytes array. An application is responsible to clean up a memory allocated for the dynamic array.  
wclGattProtectionLevel Protection = plNone 
Describes the required protection level.  

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

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