System.Bluetooth.TBluetoothGattCharacteristic.SetValueAsSingle

De RAD Studio API Documentation
Aller à : navigation, rechercher

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));

Propriétés

Type Visibilité  Source Unité  Parent
procedure
function
public
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothGattCharacteristic


Description

Définit la caractéristique Value sur le AValue Single fourni en tant qu'argument.

SetValueAsSingle attend trois arguments :

  • AValue : Une valeur Single.
  • Offset : La valeur d'index du tableau d'octets. La valeur par défaut de Offset est 0, soit la première position du tableau.
  • AFormatType : Le type de format.
AFormatType Accesseur en écriture
Unsigned8bitInteger Appelle SetValueAs avec le type de données, Single.

Si AFormatType n'est pas IEEE754_32bit_floating_point, une exception de format est déclenchée.

Voir aussi