Lines Matching refs:subscribe_params

553 static struct bt_gatt_subscribe_params subscribe_params;  variable
576 if (subscribe_params.value_handle) { in cmd_subscribe()
578 "already exists", subscribe_params.value_handle); in cmd_subscribe()
587 subscribe_params.ccc_handle = strtoul(argv[1], NULL, 16); in cmd_subscribe()
588 subscribe_params.value_handle = strtoul(argv[2], NULL, 16); in cmd_subscribe()
589 subscribe_params.value = BT_GATT_CCC_NOTIFY; in cmd_subscribe()
590 subscribe_params.notify = notify_func; in cmd_subscribe()
591 SET_CHAN_OPT_ANY(subscribe_params); in cmd_subscribe()
594 if (subscribe_params.ccc_handle == 0) { in cmd_subscribe()
597 subscribe_params.disc_params = &disc_params; in cmd_subscribe()
598 subscribe_params.end_handle = 0xFFFF; in cmd_subscribe()
604 subscribe_params.value = BT_GATT_CCC_INDICATE; in cmd_subscribe()
607 err = bt_gatt_subscribe(default_conn, &subscribe_params); in cmd_subscribe()
609 subscribe_params.value_handle = 0U; in cmd_subscribe()
624 if (subscribe_params.value_handle) { in cmd_resubscribe()
626 " already exists", subscribe_params.value_handle); in cmd_resubscribe()
636 subscribe_params.ccc_handle = strtoul(argv[3], NULL, 16); in cmd_resubscribe()
637 subscribe_params.value_handle = strtoul(argv[4], NULL, 16); in cmd_resubscribe()
638 subscribe_params.value = BT_GATT_CCC_NOTIFY; in cmd_resubscribe()
639 subscribe_params.notify = notify_func; in cmd_resubscribe()
640 SET_CHAN_OPT_ANY(subscribe_params); in cmd_resubscribe()
643 subscribe_params.value = BT_GATT_CCC_INDICATE; in cmd_resubscribe()
646 err = bt_gatt_resubscribe(selected_id, &addr, &subscribe_params); in cmd_resubscribe()
648 subscribe_params.value_handle = 0U; in cmd_resubscribe()
667 if (!subscribe_params.value_handle) { in cmd_unsubscribe()
672 err = bt_gatt_unsubscribe(default_conn, &subscribe_params); in cmd_unsubscribe()