Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions
DiscoveredCharacteristicDescriptor Class Reference

Representation of a characteristic descriptor discovered. More...

#include <DiscoveredCharacteristicDescriptor.h>

Public Member Functions

 DiscoveredCharacteristicDescriptor (GattClient *client, ble::connection_handle_t connectionHandle, GattAttribute::Handle_t attributeHandle, const UUID &uuid)
 Construct a new instance of a DiscoveredCharacteristicDescriptor. More...
 
GattClientgetGattClient ()
 Return the GattClient, which can operate on this descriptor. More...
 
const GattClientgetGattClient () const
 Return the GattClient, which can operate on this descriptor. More...
 
ble::connection_handle_t getConnectionHandle () const
 Return the connection handle to the GattServer containing this descriptor. More...
 
const UUIDgetUUID (void) const
 Return the UUID of this descriptor. More...
 
GattAttribute::Handle_t getAttributeHandle () const
 Return the attribute handle of this descriptor. More...
 

Detailed Description

Representation of a characteristic descriptor discovered.

Characteristic descriptors can be seen as the metadata of the characteristic. They can contain things such as the unit of the characteristic value, extra permission informations or the Client Configuration state in regard to notification or indication.

The descriptors of a characterstic are discovered by a Characteristic Descriptor Discovery Procedure, which can be initiated by either GattClient::discoverCharacteristicDescriptors() or DiscoveredCharacteristic::discoverDescriptors().

The discovery procedure returns the UUID of the descriptor (its type) and its handle.

Read and write of the descriptor value can be initiated by GattClient::read and GattClient::write.

Definition at line 58 of file DiscoveredCharacteristicDescriptor.h.

Constructor & Destructor Documentation

DiscoveredCharacteristicDescriptor ( GattClient client,
ble::connection_handle_t  connectionHandle,
GattAttribute::Handle_t  attributeHandle,
const UUID uuid 
)

Construct a new instance of a DiscoveredCharacteristicDescriptor.

Parameters
[in]clientThe client that has discovered the descriptor.
[in]connectionHandleHandle of the connection to the GATT server containing the descriptor.
[in]attributeHandleGATT attribute handle of the descriptor.
[in]uuidUUID of the descriptor.
Note
This constructor is not meant to be called directly by application code. The Gattclient class generates descriptors discovered.

Definition at line 74 of file DiscoveredCharacteristicDescriptor.h.

Member Function Documentation

GattAttribute::Handle_t getAttributeHandle ( ) const

Return the attribute handle of this descriptor.

This attribute handle can be used to interact with the descriptor on its gatt server.

Returns
Attribute handle of the descriptor

Definition at line 135 of file DiscoveredCharacteristicDescriptor.h.

ble::connection_handle_t getConnectionHandle ( ) const

Return the connection handle to the GattServer containing this descriptor.

Returns
the connection handle to the GattServer containing this descriptor.

Definition at line 112 of file DiscoveredCharacteristicDescriptor.h.

GattClient* getGattClient ( void  )

Return the GattClient, which can operate on this descriptor.

Returns
GattClient, which can operate on this descriptor.

Definition at line 90 of file DiscoveredCharacteristicDescriptor.h.

const GattClient* getGattClient ( void  ) const

Return the GattClient, which can operate on this descriptor.

Returns
GattClient, which can operate on this descriptor.

Definition at line 100 of file DiscoveredCharacteristicDescriptor.h.

const UUID& getUUID ( void  ) const

Return the UUID of this descriptor.

Returns
UUID of this descriptor.

Definition at line 122 of file DiscoveredCharacteristicDescriptor.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.