System.Bluetooth.TBluetoothGattCharacteristic.SetValueAsInteger
Delphi
procedure SetValueAsInteger(AValue: Integer; Offset: Integer = 0; AFormatType: TBluetoothGattFormatType = TBluetoothGattFormatType.Signed32bitInteger);
C++
void __fastcall SetValueAsInteger(int AValue, int Offset = 0x0, TBluetoothGattFormatType AFormatType = (TBluetoothGattFormatType)(0x10));
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 l'entier AValue
fourni en tant qu'argument.
SetValueAsInteger attend trois arguments :
AValue
: Une valeur de nombre entier.Offset
: La valeur d'index du tableau d'octets. La valeur par défaut deOffset
est0
, soit la première position du tableau.AFormatType
: Le type du nombre entier.
AFormatType
|
Accesseur en écriture |
---|---|
Unsigned8bitInteger | Appelle SetValueAs avec le type de données, UInt8 .
|
Unsigned16bitInteger | Appelle SetValueAs avec le type de données, UInt16 .
|
Unsigned32bitInteger | Appelle SetValueAs avec le type de données, UInt32 .
|
Signed8bitInteger | Appelle SetValueAs avec le type de données, Int8 .
|
Signed16bitInteger | Appelle SetValueAs avec le type de données, Int16 .
|
Signed32bitInteger | Appelle SetValueAs avec le type de données, Int32 .
|
Si AFormatType
n'est pas inclus dans le tableau ci-dessus, une exception de format est déclenchée.