From b9f09d785be4912898dcc22213c21399c32f3dab Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Fri, 24 Jul 2020 17:06:34 +0200 Subject: [PATCH] Bluetooth: Att: Added define for max attribute length Added a #define for the maximum attribute length defined by the core spec. Usefull for GATT servers and clients that deals with long values. Signed-off-by: Emil Gydesen --- include/bluetooth/att.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/bluetooth/att.h b/include/bluetooth/att.h index 625478bd434..4a21342253a 100644 --- a/include/bluetooth/att.h +++ b/include/bluetooth/att.h @@ -43,6 +43,9 @@ extern "C" { #define BT_ATT_ERR_PROCEDURE_IN_PROGRESS 0xfe #define BT_ATT_ERR_OUT_OF_RANGE 0xff +/* Version 5.2, Vol 3, Part F, 3.2.9 defines maximum attribute length to 512 */ +#define BT_ATT_MAX_ATTRIBUTE_LEN 512 + #ifdef __cplusplus } #endif