Skip to content
Commit 7b61bd65 authored by Olivier Lesage's avatar Olivier Lesage Committed by Benjamin Cabé
Browse files

bluetooth: gatt: Add BT_GATT_CCC_WITH_WRITE_CB()



Add simple helper macro so users can define a CCCD with a write cb
without having to combine BT_GATT_CCC_MANAGED() and
BT_GATT_CCC_INITIALIZER() themselves.

Unlike the changed callback the write callback has a return value
that can be used to reject the write request.

Signed-off-by: default avatarOlivier Lesage <olivier.lesage@nordicsemi.no>
parent c1e8ad44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment