Bluetooth Framework C++ Edition

◆ AddCharacteristic()

int AddCharacteristic ( const wclGattUuid Uuid,
const wclGattLocalCharacteristicParameters Params,
CwclGattLocalCharacteristic *&  Characteristic 
)

Creates new characteristic and adds it to the service characteristics list.

Parameters
UuidThe characteristic UUID.
ParamsThe characteristic parameters.
CharacteristicIf the method completed with success the parameters contains a just created GATT characteristic object.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.
See also
wclGattUuid, wclGattLocalCharacteristicParameters, CwclGattLocalCharacteristic