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));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattCharacteristic |
Description
Sets the Characteristic Value to the integer AValue
supplied as an argument.
SetValueAsInteger expects three arguments:
AValue
: An integer value.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.
AFormatType
|
Setter |
---|---|
Unsigned8bitInteger | Calls SetValueAs with the data type, UInt8 .
|
Unsigned16bitInteger | Calls SetValueAs with the data type, UInt16 .
|
Unsigned32bitInteger | Calls SetValueAs with the data type, UInt32 .
|
Signed8bitInteger | Calls SetValueAs with the data type, Int8 .
|
Signed16bitInteger | Calls SetValueAs with the data type, Int16 .
|
Signed32bitInteger | Calls SetValueAs with the data type, Int32 .
|
If AFormatType
is not included on the table above, a format exception raises.