Bluetooth: GATT: Add documentation for empty notifications in callback
Adds documentation specifically for empty notification in the bt_gatt_notify_func_t callback, as that works a bit different from e.g. reading an empty characteristic. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
2bada95482
commit
a4108e7b0b
1 changed files with 4 additions and 0 deletions
|
@ -1454,6 +1454,10 @@ struct bt_gatt_subscribe_params;
|
|||
/** @typedef bt_gatt_notify_func_t
|
||||
* @brief Notification callback function
|
||||
*
|
||||
* In the case of an empty notification, the @p data pointer will be non-NULL
|
||||
* while the @p length will be 0, which is due to the special case where
|
||||
* a @p data NULL pointer means unsubscribed.
|
||||
*
|
||||
* @param conn Connection object. May be NULL, indicating that the peer is
|
||||
* being unpaired
|
||||
* @param params Subscription parameters.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue