No description
This removes destroy callback for userdata as bt_gatt_subscribe doesn't take any user data parameters and that destroy callback was acctually called with subscribe parameters. We assume subscription is active if bt_gatt_subscribe returned 0 (ie write command was sent). This is due to remote might be sending notifications before reply to write. Also note that bt_gatt_subscribe doesn't take any user data parameters and that destroy callback was acctually called with subscribe parameters. If application would require to pass user data along with parameters it may use CONTAINER_OF macro along with bt_gatt_subscribe_params. Change-Id: I58ac9cd481ffa08ccc2d7a0464ca75f61fb280c5 Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com> |
||
---|---|---|
arch | ||
boards | ||
doc | ||
drivers | ||
include | ||
kernel | ||
lib | ||
misc | ||
net | ||
samples | ||
scripts | ||
.checkpatch.conf | ||
.gitattributes | ||
.gitignore | ||
.mailmap | ||
Kbuild | ||
Kconfig | ||
Kconfig.zephyr | ||
LICENSE | ||
Makefile | ||
Makefile.inc | ||
zephyr-env.sh |