TwclGattClientConnection.HalWriteCharacteristicValue(TwclGattCharacteristic,TwclGattProtectionLevel,TwclGattCharacteristicValue) Method
Implements a hardware-dependent code to write the specified characteristic value to the Bluetooth device.
protected function HalWriteCharacteristicValue( const Characteristic: TwclGattCharacteristic; const Protection: TwclGattProtectionLevel; const Value: TwclGattCharacteristicValue): Integer; virtual; abstract;
Parameters
- Characteristic
- Type: TwclGattCharacteristic
A TwclGattCharacteristic structure obtained by previous call to the
ReadCaracteristics
method. - Protection
- Type: TwclGattProtectionLevel
Describes the required protection level.
- Value
- Type: TwclGattCharacteristicValue
Contains a characteristic's value as bytes array.
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.