System.Bluetooth.TBluetoothGattCharacteristic.GetValueAsInteger

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function GetValueAsInteger(Offset: Integer = 0;  AFormatType: TBluetoothGattFormatType = TBluetoothGattFormatType.Signed32bitInteger): Integer;

C++

int __fastcall GetValueAsInteger(int Offset = 0x0, TBluetoothGattFormatType AFormatType = (TBluetoothGattFormatType)(0x10));

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 d'entier.

GetValueAsInteger attend deux arguments :

  • 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 d'index utilisé pour obtenir la valeur.
AFormatType Accesseur en lecture
Unsigned8bitInteger GetValueAsUInt8
Unsigned16bitInteger GetValueAsUInt16
Unsigned32bitInteger GetValueAsUInt32
Signed8bitInteger GetValueAsInt8
Signed16bitInteger GetValueAsInt16
Signed32bitInteger GetValueAsInt32

Si AFormatType n'est pas inclus dans le tableau ci-dessus, une exception de format est déclenchée.

Voir aussi