System.Bluetooth.TBluetoothGattCharacteristic.SetValueAsInteger
Delphi
procedure SetValueAsInteger(AValue: Integer; Offset: Integer = 0; AFormatType: TBluetoothGattFormatType = TBluetoothGattFormatType.Signed32bitInteger);
C++
void __fastcall SetValueAsInteger(int AValue, int Offset = 0x0, TBluetoothGattFormatType AFormatType = (TBluetoothGattFormatType)(0x10));
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
procedure function |
public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattCharacteristic |
説明
キャラクタリスティックの値を、引数で指定された整数 AValue に設定します。
SetValueAsInteger には次の 3 つの引数が必要です。
AValue: 整数値。Offset: バイト配列のインデックス値。Offsetのデフォルト値は0(配列の先頭位置)です。AFormatType: 整数の種類。
AFormatType
|
設定アクセサ |
|---|---|
| Unsigned8bitInteger | データ型 UInt8 で SetValueAs を呼び出します。
|
| Unsigned16bitInteger | データ型 UInt16 で SetValueAs を呼び出します。
|
| Unsigned32bitInteger | データ型 UInt32 で SetValueAs を呼び出します。
|
| Signed8bitInteger | データ型 Int8 で SetValueAs を呼び出します。
|
| Signed16bitInteger | データ型 Int16 で SetValueAs を呼び出します。
|
| Signed32bitInteger | データ型 Int32 で SetValueAs を呼び出します。
|
AFormatType が上記の表に含まれていない場合は、形式の例外が発生します。