/hal_espressif-3.6.0/components/protocomm/src/simple_ble/ |
D | simple_ble.c | 151 if (param->add_attr_tab.status != ESP_GATT_OK) { in gatts_profile_event_handler() 152 … ESP_LOGE(TAG, "creating the attribute table failed, error code=0x%x", param->add_attr_tab.status); in gatts_profile_event_handler() 153 } else if (param->add_attr_tab.num_handle != g_ble_cfg_p->gatt_db_count) { in gatts_profile_event_handler() 156 …G, "created attribute table successfully, the number handle = %d", param->add_attr_tab.num_handle); in gatts_profile_event_handler() 157 … g_gatt_table_map = (uint16_t *) calloc(param->add_attr_tab.num_handle, sizeof(uint16_t)); in gatts_profile_event_handler() 163 g_ble_max_gatt_table_size = param->add_attr_tab.num_handle; in gatts_profile_event_handler() 164 …memcpy(g_gatt_table_map, param->add_attr_tab.handles, param->add_attr_tab.num_handle * sizeof(g_ga… in gatts_profile_event_handler()
|
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/main/ |
D | hid_device_le_prf.c | 610 if (param->add_attr_tab.num_handle == BAS_IDX_NB && in esp_hidd_prf_cb_hdl() 611 param->add_attr_tab.svc_uuid.uuid.uuid16 == ESP_GATT_UUID_BATTERY_SERVICE_SVC && in esp_hidd_prf_cb_hdl() 612 param->add_attr_tab.status == ESP_GATT_OK) { in esp_hidd_prf_cb_hdl() 613 incl_svc.start_hdl = param->add_attr_tab.handles[BAS_IDX_SVC]; in esp_hidd_prf_cb_hdl() 619 if (param->add_attr_tab.num_handle == HIDD_LE_IDX_NB && in esp_hidd_prf_cb_hdl() 620 param->add_attr_tab.status == ESP_GATT_OK) { in esp_hidd_prf_cb_hdl() 621 memcpy(hidd_le_env.hidd_inst.att_tbl, param->add_attr_tab.handles, in esp_hidd_prf_cb_hdl() 627 esp_ble_gatts_start_service(param->add_attr_tab.handles[0]); in esp_hidd_prf_cb_hdl()
|
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/gatt_server_service_table/main/ |
D | gatts_table_creat_demo.c | 460 if (param->add_attr_tab.status != ESP_GATT_OK){ in gatts_profile_event_handler() 461 …OGE(GATTS_TABLE_TAG, "create attribute table failed, error code=0x%x", param->add_attr_tab.status); in gatts_profile_event_handler() 463 else if (param->add_attr_tab.num_handle != HRS_IDX_NB){ in gatts_profile_event_handler() 465 … doesn't equal to HRS_IDX_NB(%d)", param->add_attr_tab.num_handle, HRS_IDX_NB); in gatts_profile_event_handler() 468 …G, "create attribute table successfully, the number handle = %d\n",param->add_attr_tab.num_handle); in gatts_profile_event_handler() 469 … memcpy(heart_rate_handle_table, param->add_attr_tab.handles, sizeof(heart_rate_handle_table)); in gatts_profile_event_handler()
|
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/ble_spp_server/main/ |
D | ble_spp_server_demo.c | 609 ESP_LOGI(GATTS_TABLE_TAG, "The number handle =%x\n",param->add_attr_tab.num_handle); in gatts_profile_event_handler() 610 if (param->add_attr_tab.status != ESP_GATT_OK){ in gatts_profile_event_handler() 611 …OGE(GATTS_TABLE_TAG, "Create attribute table failed, error code=0x%x", param->add_attr_tab.status); in gatts_profile_event_handler() 613 else if (param->add_attr_tab.num_handle != SPP_IDX_NB){ in gatts_profile_event_handler() 614 … abnormally, num_handle (%d) doesn't equal to HRS_IDX_NB(%d)", param->add_attr_tab.num_handle, SPP… in gatts_profile_event_handler() 617 memcpy(spp_handle_table, param->add_attr_tab.handles, sizeof(spp_handle_table)); in gatts_profile_event_handler()
|
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/ble_compatibility_test/main/ |
D | ble_compatibility_test.c | 571 if (param->add_attr_tab.status != ESP_GATT_OK){ in gatts_profile_event_handler() 572 …SP_LOGE(EXAMPLE_TAG, "create attribute table failed, error code=0x%x", param->add_attr_tab.status); in gatts_profile_event_handler() 574 else if (param->add_attr_tab.num_handle != HRS_IDX_NB){ in gatts_profile_event_handler() 576 … doesn't equal to HRS_IDX_NB(%d)", param->add_attr_tab.num_handle, HRS_IDX_NB); in gatts_profile_event_handler() 579 …G, "create attribute table successfully, the number handle = %d\n",param->add_attr_tab.num_handle); in gatts_profile_event_handler() 580 … memcpy(gatt_db_handle_table, param->add_attr_tab.handles, sizeof(gatt_db_handle_table)); in gatts_profile_event_handler()
|
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/gatt_security_server/main/ |
D | example_ble_sec_gatts_demo.c | 450 ESP_LOGI(GATTS_TABLE_TAG, "The number handle = %x",param->add_attr_tab.num_handle); in gatts_profile_event_handler() 452 if(param->add_attr_tab.num_handle == HRS_IDX_NB) { in gatts_profile_event_handler() 453 memcpy(heart_rate_handle_table, param->add_attr_tab.handles, in gatts_profile_event_handler() 458 param->add_attr_tab.num_handle, HRS_IDX_NB); in gatts_profile_event_handler()
|
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble_50/ble50_security_server/main/ |
D | ble50_sec_gatts_demo.c | 404 ESP_LOGI(GATTS_TABLE_TAG, "The number handle = %x",param->add_attr_tab.num_handle); in gatts_profile_event_handler() 406 if(param->add_attr_tab.num_handle == HRS_IDX_NB) { in gatts_profile_event_handler() 407 memcpy(profile_handle_table, param->add_attr_tab.handles, in gatts_profile_event_handler() 412 param->add_attr_tab.num_handle, HRS_IDX_NB); in gatts_profile_event_handler()
|
/hal_espressif-3.6.0/components/bt/host/bluedroid/btc/profile/std/gatt/ |
D | btc_gatts.c | 226 param.add_attr_tab.status = ESP_GATT_OK; in btc_gatts_act_create_attr_tab() 227 param.add_attr_tab.num_handle = max_nb_attr; in btc_gatts_act_create_attr_tab() 229 if (param.add_attr_tab.status != ESP_GATT_OK) { in btc_gatts_act_create_attr_tab() 237 …if ((param.add_attr_tab.status = btc_gatts_check_valid_attr_tab(gatts_attr_db, max_nb_attr)) != ES… in btc_gatts_act_create_attr_tab() 278 param.add_attr_tab.status = ESP_GATT_ERROR; in btc_gatts_act_create_attr_tab() 305 param.add_attr_tab.status = ESP_GATT_ERROR; in btc_gatts_act_create_attr_tab() 415 param.add_attr_tab.handles = btc_creat_tab_env.handles; in btc_gatts_act_create_attr_tab() 416 memcpy(¶m.add_attr_tab.svc_uuid, &btc_creat_tab_env.svc_uuid, sizeof(esp_bt_uuid_t)); in btc_gatts_act_create_attr_tab() 418 param.add_attr_tab.svc_inst_id = srvc_inst_id; in btc_gatts_act_create_attr_tab()
|
/hal_espressif-3.6.0/components/esp_hid/src/ |
D | ble_hidd.c | 388 dev->bat_svc.handle = param->add_attr_tab.handles[BAS_IDX_SVC]; in bat_event_handler() 389 …dev->bat_level_handle = param->add_attr_tab.handles[BAS_IDX_BATT_LVL_VAL];//so we notify of the ch… in bat_event_handler() 390 …dev->bat_ccc_handle = param->add_attr_tab.handles[BAS_IDX_BATT_LVL_CCC];//so we know if we can sen… in bat_event_handler() 433 dev->info_svc.handle = param->add_attr_tab.handles[0]; in info_event_handler() 458 dev->devices[device_index].hid_svc.handle = param->add_attr_tab.handles[HIDD_LE_IDX_SVC]; in hid_event_handler() 459 …dev->devices[device_index].hid_control_handle = param->add_attr_tab.handles[HIDD_LE_IDX_HID_CTNL_P… in hid_event_handler() 460 …dev->devices[device_index].hid_protocol_handle = param->add_attr_tab.handles[HIDD_LE_IDX_PROTO_MOD… in hid_event_handler() 463 link_report_handles(&dev->devices[device_index], param->add_attr_tab.handles); in hid_event_handler()
|
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/gatt_server_service_table/tutorial/ |
D | Gatt_Server_Service_Table_Example_Walkthrough.md | 456 ESP_LOGI(GATTS_TABLE_TAG, "The number handle =%x\n",param->add_attr_tab.num_handle); 457 if (param->add_attr_tab.status != ESP_GATT_OK){ 458 …OGE(GATTS_TABLE_TAG, "Create attribute table failed, error code=0x%x", param->add_attr_tab.status); 460 else if (param->add_attr_tab.num_handle != HRS_IDX_NB){ 462 doesn't equal to HRS_IDX_NB(%d)", param->add_attr_tab.num_handle, HRS_IDX_NB); 465 … memcpy(heart_rate_handle_table, param->add_attr_tab.handles, sizeof(heart_rate_handle_table));
|
/hal_espressif-3.6.0/components/bt/host/bluedroid/api/include/api/ |
D | esp_gatts_api.h | 263 …} add_attr_tab; /*!< Gatt server callback param of ESP_GATTS_CREAT_ATTR_TAB_EV… member
|