System.Bluetooth.TBluetoothGattCharacteristic.SetValueAsInteger

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

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ür Offset ist 0, 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.

Siehe auch