This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

zephyr indication registration & enable

I am operating as a Central.  How do I register and enable a discovered characteristic's indication?

I do the following and the subscribe passes but then the kernel crashes provides a warning and then crashes.

uint16_t auth_desc_handle = 0;
struct bt_gatt_subscribe_params auth_subscribe_req;

if ( (auth_desc_handle = get_descriptor_handle(BLE_UUID_DXCM_AUTH)) != 0)
{
auth_subscribe_req.notify = cb_indicate_auth;
auth_subscribe_req.value = BT_GATT_CCC_INDICATE;
auth_subscribe_req.ccc_handle = auth_desc_handle;

if ( (err = bt_gatt_subscribe(conn, &auth_subscribe_req)) >= 0)
{
printk(" .. Auth Service Registered\n");
return(true);
}
}

.. Auth Service Registered
[00:00:25.559,112] <wrn> bt_ctlr_hci: handle: 0x0000, CSA: 0.

Parents Reply Children
No Data
Related