Bluetooth: host: Add discovery of standard descriptor values

Add discovery of standard descriptor values. This provides a shorthand
instead of doing a read by UUID, allowing the application discovery
procedure to re-use the discover parameters for simple descriptors.

Fixes: #21489

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2021-02-22 20:29:00 +01:00 committed by Anas Nashif
commit 9f7061a83d
2 changed files with 109 additions and 3 deletions

View file

@ -1213,6 +1213,17 @@ enum {
* as it may incur in more round trips.
*/
BT_GATT_DISCOVER_ATTRIBUTE,
/** @brief Discover standard characteristic descriptor values.
*
* Discover standard characterestic descriptor values and their
* properties.
* Supported descriptors:
* - Characteristic Extended Properties
* - Client Characteristic Configuration
* - Server Characteristic Configuration
* - Characteristic Presentation Format
*/
BT_GATT_DISCOVER_STD_CHAR_DESC,
};
/** @brief GATT Discover Attributes parameters */