System.Bluetooth.TBluetoothGattCharacteristic.GetValueAsSingle

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

Delphi

function GetValueAsSingle(Offset: Integer = 0;  AFormatType: TBluetoothGattFormatType = TBluetoothGattFormatType.IEEE754_32bit_floating_point): Single;

C++

float __fastcall GetValueAsSingle(int Offset = 0x0, TBluetoothGattFormatType AFormatType = (TBluetoothGattFormatType)(0x14));

プロパティ

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


説明

特性ValueSingle で返します。


GetValueAsSingle は次の 2 つの引数を想定しています:

  • Offsetバイトの配列のインデックス値。 Offset のデフォルト値は 0 で、配列の最初の位置を示します。
  • AFormatType: 形式型。
AFormatType 取得メソッド
IEEE754_32bit_floating_point GetValueAs Single 型に対して呼び出します。

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

関連項目