Bluetooth Framework C++ Edition

◆ WriteCharacteristicValue()

int WriteCharacteristicValue ( const wclGattCharacteristic Characteristic,
const unsigned char *const  Value,
const unsigned long  Length,
const wclGattProtectionLevel  Protection = plNone,
const wclGattWriteKind  WriteKind = wkAuto 
)

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

Parameters
CharacteristicA wclGattCharacteristic structure obtained by previous call to the ReadCaracteristics method.
ValueA pointer to the characteristic's value.
LengthA characteristic value length in bytes.
ProtectionDescribes the required protection level.
WriteKindThe write operation mode.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.
See also
wclGattCharacteristic, wclGattProtectionLevel, wclGattWriteKind