Pages
API Documentation
On this page

BluezQt::GattDescriptor Class

Bluetooth GATT Descriptor. This class was introduced in Qt 6.0. More...

  • Header: #include <BluezQt/GattDescriptor>
  • Since: Qt 6.0
  • CMake: find_package(KF6 REQUIRED COMPONENTS BluezQt)
    target_link_libraries(mytarget PRIVATE KF6::BluezQt)
  • Inherits: QObject

List of all members, including inherited members

Public Functions

Static Public Members

Protected Functions

Detailed Description

GATT Descriptors contain additional information and attributes of a GATT characteristic.

Member Function Documentation

GattDescriptor::GattDescriptor(const QString &uuid, BluezQt::GattCharacteristic *parent)

Creates a GattDescriptor with the given uuid as a child of a parent characteristic.

GattDescriptor::GattDescriptor(const QString &uuid, const QStringList &flags, BluezQt::GattCharacteristic *parent)

Creates a GattDescriptor with the given uuid and flags as a child of a parent characteristic.

GattDescriptor::GattDescriptor(const QString &uuid, const QStringList &flags, const QByteArray &initialValue, BluezQt::GattCharacteristic *parent)

Creates a GattDescriptor with the given uuid, flags and initialValue as a child of a parent characteristic.

QDBusObjectPath GattDescriptor::characteristic() const

Return the D-Bus object path of the parent characteristic.

[static] BluezQt::GattDescriptor *GattDescriptor::createUserDescription(const QString &description, BluezQt::GattCharacteristic *characteristic)

Convenience method to create a User Description description for the given charactersitic.

Returns A pointer to the created descriptor.

QStringList GattDescriptor::flags() const

Return the flags of the descriptor.

[virtual protected] QDBusObjectPath GattDescriptor::objectPath() const

QByteArray GattDescriptor::readValue()

Reads the current value of the descriptor.

QString GattDescriptor::uuid() const

Returns the UUID of the descriptor.

void GattDescriptor::writeValue(const QByteArray &value)

Writes the new value of the descriptor.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.