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));
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 Integer-AValue
.
SetValueAsInteger erwartet drei Argumente:
AValue
: Ein Integer-Wert.Offset
: Der Indexwert für das Byte-Array. Der Standardwert fürOffset
ist0
, die erste Position des Arrays.AFormatType
: Der Typ des Integerwertes.
AFormatType
|
Setter |
---|---|
Unsigned8bitInteger | Ruft SetValueAs mit dem Datentyp UInt8 auf.
|
Unsigned16bitInteger | Ruft SetValueAs mit dem Datentyp UInt16 auf.
|
Unsigned32bitInteger | Ruft SetValueAs mit dem Datentyp UInt32 auf.
|
Signed8bitInteger | Ruft SetValueAs mit dem Datentyp Int8 auf.
|
Signed16bitInteger | Ruft SetValueAs mit dem Datentyp Int16 auf.
|
Signed32bitInteger | Ruft SetValueAs mit dem Datentyp Int32 auf.
|
Wenn AFormatType
nicht einbezogen ist, wird eine Format-Exception ausgelöst.