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));
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattCharacteristic |
Description
Returns the Characteristic Value as a Single.
GetValueAsSingle expects two arguments:
Offset: The index value for the array of bytes. The default value forOffsetis0, the first position of the array.
AFormatType: The format type.
AFormatType
|
Getter |
|---|---|
| IEEE754_32bit_floating_point | Calls GetValueAs for the Single type.
|
If AFormatType is not IEEE754_32bit_floating_point, a format exception raises.