System.Bluetooth.TBluetoothGattCharacteristic.SetValueAsInteger

提供: RAD Studio API Documentation
移動先: 案内検索

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 データ型 UInt8SetValueAs を呼び出します。
Unsigned16bitInteger データ型 UInt16SetValueAs を呼び出します。
Unsigned32bitInteger データ型 UInt32SetValueAs を呼び出します。
Signed8bitInteger データ型 Int8SetValueAs を呼び出します。
Signed16bitInteger データ型 Int16SetValueAs を呼び出します。
Signed32bitInteger データ型 Int32SetValueAs を呼び出します。

AFormatType が上記の表に含まれていない場合は、形式の例外が発生します。

関連項目