Bluetooth Framework C++ Edition

◆ WriteDescriptorValue()

int WriteDescriptorValue ( const wclGattDescriptor & Descriptor,
const wclGattDescriptorValue & Value,
const wclGattProtectionLevel Protection = plNone )

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

Parameters
DescriptorA wclGattDescriptor obtained by previous call to the ReadDescriptors method.
ValueA descriptor's value.
ProtectionDescribes the required protection level.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.
See also
wclGattDescriptor, wclGattDescriptorValue, wclGattProtectionLevel