Bluetooth: ATT: Add ATT first/last handle defines

Adds #defines for the minimum (first) and maximum (last)
attribute handles in ATT. These are useful for when setting e.g.
the start and end handle when doing a full GATT discover.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2021-04-06 14:20:47 +02:00 committed by Carles Cufí
commit 2b849f07b6

View file

@ -47,6 +47,11 @@ extern "C" {
/* Version 5.2, Vol 3, Part F, 3.2.9 defines maximum attribute length to 512 */ /* Version 5.2, Vol 3, Part F, 3.2.9 defines maximum attribute length to 512 */
#define BT_ATT_MAX_ATTRIBUTE_LEN 512 #define BT_ATT_MAX_ATTRIBUTE_LEN 512
/* Handle 0x0000 is reserved for future use */
#define BT_ATT_FIRST_ATTTRIBUTE_HANDLE 0x0001
/* 0xffff is defined as the maximum, and thus last, valid attribute handle */
#define BT_ATT_LAST_ATTTRIBUTE_HANDLE 0xffff
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif