System.Bluetooth.TBluetoothGattCharacteristic.SetValueAs
Delphi
procedure SetValueAs<T>(AValue: T; Offset: Integer = 0);
C++
template<typename T> void __fastcall SetValueAs(T AValue, int Offset = 0x0);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattCharacteristic |
説明
キャラクタリスティックの値を、引数で指定された AValue
に設定します。
SetValueAs には次の 2 つの引数が必要です。
AValue
: 値。Offset
: バイト配列のインデックス値。Offset
のデフォルト値は0
(配列の先頭位置)です。
SetValueAs では、SetValue を呼び出して、Value を TBytes として定義します。