Bluetooth: GATT: Document discover types
This documents existing types that can be used with bt_gatt_discover. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
af61102ae1
commit
0aa10521f4
|
@ -865,11 +865,27 @@ typedef u8_t (*bt_gatt_discover_func_t)(struct bt_conn *conn,
|
|||
const struct bt_gatt_attr *attr,
|
||||
struct bt_gatt_discover_params *params);
|
||||
|
||||
/* GATT Discover types */
|
||||
enum {
|
||||
/** Discover Primary Services. */
|
||||
BT_GATT_DISCOVER_PRIMARY,
|
||||
/** Discover Secondary Services. */
|
||||
BT_GATT_DISCOVER_SECONDARY,
|
||||
/** Discover Included Services. */
|
||||
BT_GATT_DISCOVER_INCLUDE,
|
||||
/** Discover Characteristic Values.
|
||||
*
|
||||
* Discover Characteristic Value and its properties.
|
||||
*/
|
||||
BT_GATT_DISCOVER_CHARACTERISTIC,
|
||||
/** Discover Descriptors.
|
||||
*
|
||||
* Discover Attributes which are not services or characteristics.
|
||||
*
|
||||
* Note: The use of this type of discover is not recommended for
|
||||
* discovering in ranges across multiple services/characteristics
|
||||
* as it may incur in extra round trips.
|
||||
*/
|
||||
BT_GATT_DISCOVER_DESCRIPTOR,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue