BluezQt
gattdescriptor.cpp
16GattDescriptor *GattDescriptor::createUserDescription(QString const &description, GattCharacteristic *characteristic)
18 return new GattDescriptor(QLatin1String("2901"), {QLatin1String("read")}, description.toUtf8(), characteristic);
26GattDescriptor::GattDescriptor(const QString &uuid, const QStringList &flags, GattCharacteristic *parent)
31GattDescriptor::GattDescriptor(const QString &uuid, const QStringList &flags, const QByteArray &initialValue, GattCharacteristic *parent)
void writeValue(const QByteArray &value)
Writes the value of the descriptor.
Definition gattdescriptor.cpp:44
static GattDescriptor * createUserDescription(const QString &description, GattCharacteristic *characteristic)
Convenience method to create a User Description for the given charactersitic.
Definition gattdescriptor.cpp:16
QDBusObjectPath characteristic() const
Return the DBus object path of the parent characteristic.
Definition gattdescriptor.cpp:54
GattDescriptor(const QString &uuid, GattCharacteristic *parent)
Creates a GattDescriptor with the given UUID.
Definition gattdescriptor.cpp:21
QByteArray toUtf8() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.