Lines Matching refs:subscribe_params
545 static struct bt_gatt_subscribe_params subscribe_params; variable
568 if (subscribe_params.value_handle) { in cmd_subscribe()
570 subscribe_params.value_handle); in cmd_subscribe()
579 subscribe_params.ccc_handle = strtoul(argv[1], NULL, 16); in cmd_subscribe()
580 subscribe_params.value_handle = strtoul(argv[2], NULL, 16); in cmd_subscribe()
581 subscribe_params.value = BT_GATT_CCC_NOTIFY; in cmd_subscribe()
582 subscribe_params.notify = notify_func; in cmd_subscribe()
583 SET_CHAN_OPT_ANY(subscribe_params); in cmd_subscribe()
586 if (subscribe_params.ccc_handle == BT_GATT_AUTO_DISCOVER_CCC_HANDLE) { in cmd_subscribe()
589 subscribe_params.disc_params = &disc_params; in cmd_subscribe()
590 subscribe_params.end_handle = 0xFFFF; in cmd_subscribe()
595 subscribe_params.value = BT_GATT_CCC_INDICATE; in cmd_subscribe()
598 err = bt_gatt_subscribe(default_conn, &subscribe_params); in cmd_subscribe()
600 subscribe_params.value_handle = 0U; in cmd_subscribe()
615 if (subscribe_params.value_handle) { in cmd_resubscribe()
617 subscribe_params.value_handle); in cmd_resubscribe()
627 subscribe_params.ccc_handle = strtoul(argv[3], NULL, 16); in cmd_resubscribe()
628 subscribe_params.value_handle = strtoul(argv[4], NULL, 16); in cmd_resubscribe()
629 subscribe_params.value = BT_GATT_CCC_NOTIFY; in cmd_resubscribe()
630 subscribe_params.notify = notify_func; in cmd_resubscribe()
631 SET_CHAN_OPT_ANY(subscribe_params); in cmd_resubscribe()
634 subscribe_params.value = BT_GATT_CCC_INDICATE; in cmd_resubscribe()
637 err = bt_gatt_resubscribe(selected_id, &addr, &subscribe_params); in cmd_resubscribe()
639 subscribe_params.value_handle = 0U; in cmd_resubscribe()
658 if (!subscribe_params.value_handle) { in cmd_unsubscribe()
663 err = bt_gatt_unsubscribe(default_conn, &subscribe_params); in cmd_unsubscribe()