BluezQt 5.109.0
Properties | Signals | Public Slots | Public Member Functions | List of all members
BluezQt::GattDescriptorRemote

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

PendingCallreadValue (const QVariantMap &options)
 Read the value of the GATT descriptor.
 
PendingCallwriteValue (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.
 
PendingCallsetHandle (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.
 

Detailed Description

Bluetooth LE GATT descriptor.

This class represents a Bluetooth LE GATT descriptor for the clients.

Constructor & Destructor Documentation

◆ ~GattDescriptorRemote()

BluezQt::GattDescriptorRemote::~GattDescriptorRemote ( )
override

Destroys a GattDescriptor object.

Member Function Documentation

◆ characteristic()

GattCharacteristicRemotePtr BluezQt::GattDescriptorRemote::characteristic ( ) const

Returns a characteristic that owns that descriptor.

Returns
characteristic of descriptor

◆ descriptorChanged

void BluezQt::GattDescriptorRemote::descriptorChanged ( GattDescriptorRemotePtr  descriptor)
signal

Indicates that at least one of the descriptors's properties have changed.

◆ flags()

QStringList BluezQt::GattDescriptorRemote::flags ( ) const

Returns flags the descriptor.

Returns
flags of descriptor

◆ flagsChanged

void BluezQt::GattDescriptorRemote::flagsChanged ( QStringList  flags)
signal

Indicates that descriptor's flags have changed.

◆ handle()

quint16 BluezQt::GattDescriptorRemote::handle ( ) const

Returns descriptor handle.

Returns
qint16 descriptor handle

◆ handleChanged

void BluezQt::GattDescriptorRemote::handleChanged ( quint16  handle)
signal

Indicates that descriptor's handle have changed.

◆ readValue

PendingCall * BluezQt::GattDescriptorRemote::readValue ( const QVariantMap &  options)
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

Returns
QByteArray pending call

◆ setHandle()

PendingCall * BluezQt::GattDescriptorRemote::setHandle ( quint16  handle)

Sets the descriptor handle.

Parameters
handledescriptor handle
Returns
void pending call

◆ toSharedPtr()

GattDescriptorRemotePtr BluezQt::GattDescriptorRemote::toSharedPtr ( ) const

Returns a shared pointer from this.

Returns
DevicePtr

◆ ubi()

QString BluezQt::GattDescriptorRemote::ubi ( ) const

Returns an UBI of the GATT descriptor.

Example UBI: "/org/bluez/hci0/dev_40_79_6A_0C_39_75"

Returns
UBI of descriptor

◆ uuid()

QString BluezQt::GattDescriptorRemote::uuid ( ) const

Returns an uuid of the descriptor.

Returns
uuid of the descriptor

◆ uuidChanged

void BluezQt::GattDescriptorRemote::uuidChanged ( const QString &  uuid)
signal

Indicates that descriptor's uuid have changed.

◆ value()

QByteArray BluezQt::GattDescriptorRemote::value ( ) const

Returns an value of the descriptor.

Returns
value of the descriptor

◆ valueChanged

void BluezQt::GattDescriptorRemote::valueChanged ( const QByteArray  value)
signal

Indicates that descriptor's value have changed.

◆ writeValue

PendingCall * BluezQt::GattDescriptorRemote::writeValue ( const QByteArray &  value,
const QVariantMap &  options 
)
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

Returns
void pending call