Bluetooth Framework C++ Edition

◆ HalWriteCharacteristicValue()

virtual int HalWriteCharacteristicValue ( const wclGattCharacteristic Characteristic,
const wclGattProtectionLevel  Protection,
const unsigned char *const  Value,
const unsigned long  Length 
)
protectedpure virtual

Implements a hardware-dependent code to write 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 data.
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.

A derived class must override this method.

See also
wclGattCharacteristic, wclGattProtectionLevel