bluetooth: att: provide named constant for successful result

BT_HCI_ERR and BT_SECURITY_ERR both define success constants which can
be used to check the results and make the intended value domain clear.
Add the same for ATT error values.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
Peter A. Bigot 2020-09-23 13:55:48 -05:00 committed by Carles Cufí
commit 776e0db03d

View file

@ -17,6 +17,7 @@ extern "C" {
#endif
/* Error codes for Error response PDU */
#define BT_ATT_ERR_SUCCESS 0x00
#define BT_ATT_ERR_INVALID_HANDLE 0x01
#define BT_ATT_ERR_READ_NOT_PERMITTED 0x02
#define BT_ATT_ERR_WRITE_NOT_PERMITTED 0x03