From 900b4b0679b911d877008dab678299af02d4ab29 Mon Sep 17 00:00:00 2001 From: Joakim Andersson Date: Wed, 8 Jan 2020 12:13:40 +0100 Subject: [PATCH] Bluetooth: GATT: Document notify callback return parameters Document the possible return values of the notify callback and the action it takes. Signed-off-by: Joakim Andersson --- include/bluetooth/gatt.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/bluetooth/gatt.h b/include/bluetooth/gatt.h index 922e0a9601e..7446288c8ef 100644 --- a/include/bluetooth/gatt.h +++ b/include/bluetooth/gatt.h @@ -1261,6 +1261,9 @@ struct bt_gatt_subscribe_params; * @param params Subscription parameters. * @param data Attribute value data. If NULL then subscription was removed. * @param length Attribute value length. + * + * @return BT_GATT_ITER_CONTINUE to continue receiving value notifications. + * BT_GATT_ITER_STOP to unsubscribe from value notifications. */ typedef u8_t (*bt_gatt_notify_func_t)(struct bt_conn *conn, struct bt_gatt_subscribe_params *params,