System.Bluetooth.TBluetoothGattCharacteristic.GetValueAsSingle
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 |
説明
GetValueAsSingle は次の 2 つの引数を想定しています:
Offset
: バイトの配列のインデックス値。Offset
のデフォルト値は0
で、配列の最初の位置を示します。
AFormatType
: 形式型。
AFormatType
|
取得メソッド |
---|---|
IEEE754_32bit_floating_point | GetValueAs を Single 型に対して呼び出します。
|
AFormatType
が IEEE754_32bit_floating_point
ではない場合、形式例外が発生します。