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));
Propriétés
| Type | Visibilité | Source | Unité | Parent |
|---|---|---|---|---|
| function | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattCharacteristic |
Description
Renvoie la valeur de la caractéristique sous forme de Single.
GetValueAsSingle attend deux arguments :
Offset: La valeur d'index du tableau d'octets. La valeur par défaut deOffsetest0, soit la première position du tableau.
AFormatType: Le type de format.
AFormatType
|
Accesseur en lecture |
|---|---|
| IEEE754_32bit_floating_point | Appelle GetValueAs pour le type Single.
|
Si AFormatType n'est pas IEEE754_32bit_floating_point, une exception de format est déclenchée.