System.Bluetooth.TBluetoothGattCharacteristic.SetValueAsSingle

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

Delphi

procedure SetValueAsSingle(AValue: Single; Offset: Integer = 0;
AFormatType: TBluetoothGattFormatType = TBluetoothGattFormatType.IEEE754_32bit_floating_point);

C++

void __fastcall SetValueAsSingle(float AValue, int Offset = 0x0, TBluetoothGattFormatType AFormatType = (TBluetoothGattFormatType)(0x14));

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothGattCharacteristic


説明

キャラクタリスティックのを、引数で指定された SingleAValue に設定します。

SetValueAsSingle には次の 3 つの引数が必要です。

  • AValueSingle 値。
  • Offsetバイト配列のインデックス値。Offset のデフォルト値は 0(配列の先頭位置)です。
  • AFormatType: 形式の種類。
AFormatType 設定アクセサ
Unsigned8bitInteger データ型 SingleSetValueAs を呼び出します。

AFormatTypeIEEE754_32bit_floating_point でない場合は、形式の例外が発生します。

関連項目