Bluetooth Framework
ContentsIndexHome
PreviousUpNext
CwclGattLocalService::AddCharacteristic Method

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

Syntax
C++
int AddCharacteristic(wclGattUuid Uuid, wclGattLocalCharacteristicParameters Params, CwclGattLocalCharacteristic*& Characteristic);
Parameters 
Description 
wclGattUuid Uuid 
The characteristic UUID.  
wclGattLocalCharacteristicParameters Params 
The characteristic parameters.  
CwclGattLocalCharacteristic*& Characteristic 
If the method completed with success the parameters contains a just created GATT characteristic object.  

If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

Copyright (c) 2006-2020. All rights reserved.