TwclGattLocalService.HalCreateCharacteristic(TwclGattUuid,TwclGattLocalCharacteristicParameters,TwclGattLocalCharacteristic) Method
The function creates a driver specific GATT characteristic object.
protected function HalCreateCharacteristic(const Uuid: TwclGattUuid; const Params: TwclGattLocalCharacteristicParameters; out Characteristic: TwclGattLocalCharacteristic): Integer; virtual; abstract;
Parameters
- Uuid
- Type: TwclGattUuid
The characteristic UUID.
- Params
- Type: TwclGattLocalCharacteristicParameters
The characteristic parameters.
- Characteristic
- Type: TwclGattLocalCharacteristic
If the function completed with success the parameter contains just created 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.
A derived class must override this method to create a GATT characteristic.