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));
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
function | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattCharacteristic |
Beschreibung
Gibt den Wert (Value) des Merkmals als Single zurück.
GetValueAsSingle erwartet zwei Argumente:
Offset
: Der Indexwert für das Byte-Array. Der Vorgabewert fürOffset
ist0
, die erste Position des Arrays.
AFormatType
: Der Formattyp.
AFormatType
|
Getter |
---|---|
IEEE754_32bit_floating_point | Ruft GetValueAs für den Typ Single auf.
|
Wenn {Arg|AFormatType}} nicht IEEE754_32bit_floating_point
ist, wird eine Format-Exception ausgelöst.