System.Bluetooth.TBluetoothGattCharacteristic.SetValueAsSingle
Delphi
procedure SetValueAsSingle(AValue: Single; Offset: Integer = 0; AFormatType: TBluetoothGattFormatType = TBluetoothGattFormatType.IEEE754_32bit_floating_point);
C++
void __fastcall SetValueAsSingle(float AValue, int Offset = 0x0, TBluetoothGattFormatType AFormatType = (TBluetoothGattFormatType)(0x14));
Eigenschaften
| Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
|---|---|---|---|---|
procedure function |
public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattCharacteristic |
Beschreibung
Setzt den Wert (Value) des Merkmals auf den als Argument übergebenen Single-AValue.
SetValueAsSingle erwartet drei Argumente:
AValue: Ein Single-Wert.Offset: Der Indexwert für das Byte-Array. Der Standardwert fürOffsetist0, die erste Position des Arrays.AFormatType: Der Formattyp.
AFormatType
|
Setter |
|---|---|
| Unsigned8bitInteger | Ruft SetValueAs mit dem Datentyp Single auf.
|
Wenn AFormatType nicht IEEE754_32bit_floating_point ist, wird eine Format-Exception ausgelöst.