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:
parent
83396d91e2
commit
2b849f07b6
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue