bt_gatt_characteristic_s *chr = l3->data;
if (chr && chr->handle == handle) {
- if (chr->notified_cb) {
- *user_data = chr->notified_user_data;
+ if (chr->notification_changed_cb) {
+ *user_data = chr->notification_changed_user_data;
*char_handle = (bt_gatt_h*) chr;
*server = serv;
return chr->notification_changed_cb;
cb = __bt_gatt_attribute_get_notification_change_cb(&server_handle,
notif_info->handle, &char_handle, &user_data_cfm);
- if (cb == NULL)
+ if (cb == NULL) {
+ BT_INFO("cb is NULL");
return;
+ }
cb(notif_info->notification, server_handle, char_handle, user_data_cfm);
#else