From 5db708c03f534934fabda41eecde33570785324f Mon Sep 17 00:00:00 2001 From: Old-Ding <35417409+Old-Ding@users.noreply.github.com> Date: Wed, 1 Jul 2026 11:34:44 +0800 Subject: [PATCH] host: document GATT error status encoding Clarify that ble_gatt_error.status follows the NimBLE host return-code convention. Point readers to the return-code documentation instead of describing implementation-specific ATT encoding details. Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com> --- nimble/host/include/host/ble_gatt.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nimble/host/include/host/ble_gatt.h b/nimble/host/include/host/ble_gatt.h index e74ba9e1a1..9038920934 100644 --- a/nimble/host/include/host/ble_gatt.h +++ b/nimble/host/include/host/ble_gatt.h @@ -204,7 +204,12 @@ struct ble_hs_cfg; /*** @client. */ /** Represents a GATT error. */ struct ble_gatt_error { - /** The GATT status code indicating the type of error. */ + /** + * The NimBLE host status code indicating the type of error. + * + * Values follow the NimBLE host return-code convention; see: + * https://mynewt.apache.org/latest/network/ble_hs/ble_hs_return_codes.html + */ uint16_t status; /** The attribute handle associated with the error. */