Bluetooth Framework
ContentsIndexHome
PreviousUpNext
TwclGattClient.WriteCharacteristicValue Method

The method writes the specified characteristic value to the Bluetooth device.

Syntax
Pascal
function WriteCharacteristicValue(const Characteristic: TwclGattCharacteristic; const Value: TwclGattCharacteristicValue; const Protection: TwclGattProtectionLevel = plNone): Integer;
Parameters 
Description 
const Characteristic: TwclGattCharacteristic 
A TwclGattCharacteristic structure obtained by previous call to the ReadCaracteristics method.  
const Value: TwclGattCharacteristicValue 
Contains a characteristic's value as bytes array.  
const Protection: TwclGattProtectionLevel = 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.