System.Bluetooth.TBluetoothGattCharacteristic.GetValueAsInteger
Delphi
function GetValueAsInteger(Offset: Integer = 0;
AFormatType: TBluetoothGattFormatType = TBluetoothGattFormatType.Signed32bitInteger): Integer;
C++
int __fastcall GetValueAsInteger(int Offset = 0x0, TBluetoothGattFormatType AFormatType = (TBluetoothGattFormatType)(0x10));
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
function | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattCharacteristic |
Beschreibung
Gibt den Wert (Value) des Merkmals als Integer-Wert zurück.
GetValueAsInteger erwartet zwei Argumente:
Offset
: Der Indexwert für das Byte-Array. Der Vorgabewert fürOffset
ist0
, die erste Position des Arrays.
AFormatType
: Der Integertyp zum Abrufen von Value.
AFormatType
|
Getter |
---|---|
Unsigned8bitInteger | GetValueAsUInt8 |
Unsigned16bitInteger | GetValueAsUInt16 |
Unsigned32bitInteger | GetValueAsUInt32 |
Signed8bitInteger | GetValueAsInt8 |
Signed16bitInteger | GetValueAsInt16 |
Signed32bitInteger | GetValueAsInt32 |
Wenn AFormatType
nicht in der obigen Tabelle enthalten ist, wird eine Format-Exception ausgelöst.