diff --git a/drivers/nble/gatt.c b/drivers/nble/gatt.c index 71d23d2a377..4eceab1af1d 100644 --- a/drivers/nble/gatt.c +++ b/drivers/nble/gatt.c @@ -486,7 +486,7 @@ void on_ble_gatts_read_evt(const struct nble_gatt_rd_evt *evt) attr = evt->attr; - BT_DBG("read %p", attr); + BT_DBG("handle %p", attr); if (attr->read) { reply_data.status = attr->read(NULL, attr, data, sizeof(data), diff --git a/drivers/nble/gatt_internal.h b/drivers/nble/gatt_internal.h index 2fb387affec..a2d9cd687db 100644 --- a/drivers/nble/gatt_internal.h +++ b/drivers/nble/gatt_internal.h @@ -141,10 +141,12 @@ enum ble_gatts_notif_ind_type { }; struct ble_gatt_notif_ind_rsp { + /**< Callback function to call on reception of this message */ + bt_gatt_notify_func_t cback; int status; /**< Status of the operation. */ /**< Connection handle, can be 0xFFFF if value change broadcast */ uint16_t conn_handle; - uint16_t handle; /**< Characteristic value handle */ + struct bt_gatt_attr *attr; /**< GATT Attribute */ /**< MSG_ID_BLE_GATTS_SEND_NOTIF_RSP for notification or * MSG_ID_BLE_GATTS_SEND_IND_RSP for indication */