Skip to content

Commit 2b849f0

Browse files
Thalleycarlescufi
authored andcommitted
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 <[email protected]>
1 parent 83396d9 commit 2b849f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/bluetooth/att.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ extern "C" {
4747
/* Version 5.2, Vol 3, Part F, 3.2.9 defines maximum attribute length to 512 */
4848
#define BT_ATT_MAX_ATTRIBUTE_LEN 512
4949

50+
/* Handle 0x0000 is reserved for future use */
51+
#define BT_ATT_FIRST_ATTTRIBUTE_HANDLE 0x0001
52+
/* 0xffff is defined as the maximum, and thus last, valid attribute handle */
53+
#define BT_ATT_LAST_ATTTRIBUTE_HANDLE 0xffff
54+
5055
#ifdef __cplusplus
5156
}
5257
#endif

0 commit comments

Comments
 (0)