TwclGattLocalService.AddCharacteristic(TwclGattUuid,TwclGattLocalCharacteristicParameters,TwclGattLocalCharacteristic) Method
Creates new characteristic and adds it to the service characteristics list.
public function AddCharacteristic(const Uuid: TwclGattUuid; const Params: TwclGattLocalCharacteristicParameters; out Characteristic: TwclGattLocalCharacteristic): Integer;
Parameters
- Uuid
- Type: TwclGattUuid
The characteristic UUID.
- Params
- Type: TwclGattLocalCharacteristicParameters
The characteristic parameters.
- Characteristic
- Type: TwclGattLocalCharacteristic
If the method completed with success the parameters contains a just created GATT characteristic object.
Return Value
Type: Integer
If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.