System.Bluetooth.TBluetoothGattCharacteristic.GetValueAsString

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function GetValueAsString(Offset: Integer = 0; IsUTF8: Boolean = True): string;

C++

System::UnicodeString __fastcall GetValueAsString(int Offset = 0x0, bool IsUTF8 = true);

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothGattCharacteristic


Description

Renvoie la caractéristique Value sous la forme d'un String.

GetValueAsString attend deux arguments :

  • Offset : La valeur d'index du tableau d'octets. La valeur par défaut de Offset est 0, soit la première position du tableau.
  • IsUTF8 : Un argument booléen :
    • True : Le résultat est UTF8 encodé.
    • False : Le résultat est Unicode encodé.

Voir aussi