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));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattCharacteristic |
Description
Returns the Characteristic Value as an integer value.
GetValueAsInteger expects two arguments:
Offset
: The index value for the array of bytes. The default value forOffset
is0
, the first position of the array.
AFormatType
: The type of integer used to get the Value.
AFormatType
|
Getter |
---|---|
Unsigned8bitInteger | GetValueAsUInt8 |
Unsigned16bitInteger | GetValueAsUInt16 |
Unsigned32bitInteger | GetValueAsUInt32 |
Signed8bitInteger | GetValueAsInt8 |
Signed16bitInteger | GetValueAsInt16 |
Signed32bitInteger | GetValueAsInt32 |
If AFormatType
is not included on the table above, a format exception raises.