System.Bluetooth.TBluetoothGattCharacteristic.SetValueAs

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetValueAs<T>(AValue: T; Offset: Integer = 0);

C++

template<typename T> void __fastcall SetValueAs(T AValue, int Offset = 0x0);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothGattCharacteristic

Description

Sets the Characteristic Value to the AValue supplied as an argument.

SetValueAs expects two arguments:

  • AValue: The value.
  • Offset: The index value for the array of bytes. The default value for Offset is 0, the first position of the array.

SetValueAs calls SetValue to define the Value as a TBytes.

See Also