BluezQt 5.109.0
|
Bluetooth LE GATT descriptor. More...
#include <BluezQt/GattDescriptorRemote>
Properties | |
GattCharacteristicRemotePtr | characteristic |
QStringList | flags |
quint16 | handle |
QString | ubi |
QString | uuid |
QByteArray | value |
Signals | |
void | descriptorChanged (GattDescriptorRemotePtr descriptor) |
Indicates that at least one of the descriptors's properties have changed. | |
void | flagsChanged (QStringList flags) |
Indicates that descriptor's flags have changed. | |
void | handleChanged (quint16 handle) |
Indicates that descriptor's handle have changed. | |
void | uuidChanged (const QString &uuid) |
Indicates that descriptor's uuid have changed. | |
void | valueChanged (const QByteArray value) |
Indicates that descriptor's value have changed. | |
Public Slots | |
PendingCall * | readValue (const QVariantMap &options) |
Read the value of the GATT descriptor. | |
PendingCall * | writeValue (const QByteArray &value, const QVariantMap &options) |
Write the value of the GATT descriptor. | |
Public Member Functions | |
~GattDescriptorRemote () override | |
Destroys a GattDescriptor object. | |
GattCharacteristicRemotePtr | characteristic () const |
Returns a characteristic that owns that descriptor. | |
QStringList | flags () const |
Returns flags the descriptor. | |
quint16 | handle () const |
Returns descriptor handle. | |
PendingCall * | setHandle (quint16 handle) |
Sets the descriptor handle. | |
GattDescriptorRemotePtr | toSharedPtr () const |
Returns a shared pointer from this. | |
QString | ubi () const |
Returns an UBI of the GATT descriptor. | |
QString | uuid () const |
Returns an uuid of the descriptor. | |
QByteArray | value () const |
Returns an value of the descriptor. | |
Bluetooth LE GATT descriptor.
This class represents a Bluetooth LE GATT descriptor for the clients.
|
override |
Destroys a GattDescriptor object.
GattCharacteristicRemotePtr BluezQt::GattDescriptorRemote::characteristic | ( | ) | const |
Returns a characteristic that owns that descriptor.
|
signal |
Indicates that at least one of the descriptors's properties have changed.
QStringList BluezQt::GattDescriptorRemote::flags | ( | ) | const |
Returns flags the descriptor.
|
signal |
Indicates that descriptor's flags have changed.
quint16 BluezQt::GattDescriptorRemote::handle | ( | ) | const |
Returns descriptor handle.
|
signal |
Indicates that descriptor's handle have changed.
|
slot |
Read the value of the GATT descriptor.
Issues a request to read the value of the descriptor and returns the value if the operation was successful.
Possible errors: PendingCall::NotReady, PendingCall::Failed, PendingCall::InProgress, PendingCall::AlreadyConnected
PendingCall * BluezQt::GattDescriptorRemote::setHandle | ( | quint16 | handle | ) |
Sets the descriptor handle.
handle | descriptor handle |
GattDescriptorRemotePtr BluezQt::GattDescriptorRemote::toSharedPtr | ( | ) | const |
Returns a shared pointer from this.
QString BluezQt::GattDescriptorRemote::ubi | ( | ) | const |
Returns an UBI of the GATT descriptor.
Example UBI: "/org/bluez/hci0/dev_40_79_6A_0C_39_75"
QString BluezQt::GattDescriptorRemote::uuid | ( | ) | const |
Returns an uuid of the descriptor.
|
signal |
Indicates that descriptor's uuid have changed.
QByteArray BluezQt::GattDescriptorRemote::value | ( | ) | const |
Returns an value of the descriptor.
|
signal |
Indicates that descriptor's value have changed.
|
slot |
Write the value of the GATT descriptor.
Issues a request to write the value of the descriptor.
Possible errors: PendingCall::NotReady, PendingCall::Failed, PendingCall::InProgress, PendingCall::AlreadyConnected