System.Bluetooth.TBluetoothGattCharacteristic.GetValueAsString

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

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

Description

Returns the Characteristic Value as a String.

GetValueAsString expects two arguments:

  • Offset: The index value for the array of bytes. The default value for Offset is 0, the first position of the array.
  • IsUTF8: A boolean argument:
    • True: The result is UTF8 encoded.
    • False: The result is encoded as Unicode encoded.

See Also