Bluetooth Framework C++ Edition

◆ WriteCharacteristicValue()

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

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

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