Home
last modified time | relevance | path

Searched refs:scan_rst (Results 1 – 16 of 16) sorted by relevance

/hal_espressif-3.6.0/examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/components/case/
Dble_unit.c95 sync_obj.cmd_recv(param->scan_rst.ble_adv, param->scan_rst.adv_data_len); in ble_gap_util_handler()
100 switch (param->scan_rst.search_evt) { in ble_gap_util_handler()
102 if (param->scan_rst.adv_data_len > 0 \ in ble_gap_util_handler()
103 … && (memcmp(default_adv_data, param->scan_rst.ble_adv, sizeof(default_adv_data)) == 0)) { in ble_gap_util_handler()
110 if (param->scan_rst.scan_rsp_len > 0 \ in ble_gap_util_handler()
111 …&& (memcmp(default_scan_rsp_data, (param->scan_rst.ble_adv + param->scan_rst.adv_data_len), sizeof… in ble_gap_util_handler()
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/gatt_client/main/
Dgattc_demo.c340 switch (scan_result->scan_rst.search_evt) { in esp_gap_cb()
342 esp_log_buffer_hex(GATTC_TAG, scan_result->scan_rst.bda, 6); in esp_gap_cb()
343 … Adv Data Len %d, Scan Response Len %d", scan_result->scan_rst.adv_data_len, scan_result->scan_rst in esp_gap_cb()
344 adv_name = esp_ble_resolve_adv_data(scan_result->scan_rst.ble_adv, in esp_gap_cb()
350 if (scan_result->scan_rst.adv_data_len > 0) { in esp_gap_cb()
352 …esp_log_buffer_hex(GATTC_TAG, &scan_result->scan_rst.ble_adv[0], scan_result->scan_rst.adv_data_le… in esp_gap_cb()
354 if (scan_result->scan_rst.scan_rsp_len > 0) { in esp_gap_cb()
356 …og_buffer_hex(GATTC_TAG, &scan_result->scan_rst.ble_adv[scan_result->scan_rst.adv_data_len], scan_… in esp_gap_cb()
368 …en(gl_profile_tab[PROFILE_A_APP_ID].gattc_if, scan_result->scan_rst.bda, scan_result->scan_rst.ble… in esp_gap_cb()
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/ble_ibeacon/main/
Dibeacon_demo.c98 switch (scan_result->scan_rst.search_evt) { in esp_gap_cb()
101 … if (esp_ble_is_ibeacon_packet(scan_result->scan_rst.ble_adv, scan_result->scan_rst.adv_data_len)){ in esp_gap_cb()
102 … esp_ble_ibeacon_t *ibeacon_data = (esp_ble_ibeacon_t*)(scan_result->scan_rst.ble_adv); in esp_gap_cb()
104 … esp_log_buffer_hex("IBEACON_DEMO: Device address:", scan_result->scan_rst.bda, ESP_BD_ADDR_LEN ); in esp_gap_cb()
112 ESP_LOGI(DEMO_TAG, "RSSI of packet:%d dbm", scan_result->scan_rst.rssi); in esp_gap_cb()
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/ble_eddystone/main/
Desp_eddystone_demo.c103 switch(scan_result->scan_rst.search_evt) in esp_gap_cb()
108 …esp_err_t ret = esp_eddystone_decode(scan_result->scan_rst.ble_adv, scan_result->scan_rst.adv_data… in esp_gap_cb()
118 … esp_log_buffer_hex("EDDYSTONE_DEMO: Device address:", scan_result->scan_rst.bda, ESP_BD_ADDR_LEN); in esp_gap_cb()
119 ESP_LOGI(DEMO_TAG, "RSSI of packet:%d dbm", scan_result->scan_rst.rssi); in esp_gap_cb()
/hal_espressif-3.6.0/examples/bluetooth/esp_hid_device/main/
Desp_hid_gap.c340 static void handle_ble_device_result(struct ble_scan_result_evt_param *scan_rst) in handle_ble_device_result() argument
348 …uint8_t *uuid_d = esp_ble_resolve_adv_data(scan_rst->ble_adv, ESP_BLE_AD_TYPE_16SRV_CMPL, &uuid_le… in handle_ble_device_result()
354 …uint8_t *appearance_d = esp_ble_resolve_adv_data(scan_rst->ble_adv, ESP_BLE_AD_TYPE_APPEARANCE, &a… in handle_ble_device_result()
360 …uint8_t *adv_name = esp_ble_resolve_adv_data(scan_rst->ble_adv, ESP_BLE_AD_TYPE_NAME_CMPL, &adv_na… in handle_ble_device_result()
363 … adv_name = esp_ble_resolve_adv_data(scan_rst->ble_adv, ESP_BLE_AD_TYPE_NAME_SHORT, &adv_name_len); in handle_ble_device_result()
371 GAP_DBG_PRINTF("BLE: " ESP_BD_ADDR_STR ", ", ESP_BD_ADDR_HEX(scan_rst->bda)); in handle_ble_device_result()
372 GAP_DBG_PRINTF("RSSI: %d, ", scan_rst->rssi); in handle_ble_device_result()
375 GAP_DBG_PRINTF("ADDR_TYPE: '%s'", ble_addr_type_str(scan_rst->ble_addr_type)); in handle_ble_device_result()
382 …add_ble_scan_result(scan_rst->bda, scan_rst->ble_addr_type, appearance, adv_name, adv_name_len, sc… in handle_ble_device_result()
478 switch (scan_result->scan_rst.search_evt) { in ble_gap_event_handler()
[all …]
/hal_espressif-3.6.0/examples/bluetooth/esp_hid_host/main/
Desp_hid_gap.c343 static void handle_ble_device_result(struct ble_scan_result_evt_param *scan_rst) in handle_ble_device_result() argument
351 …uint8_t *uuid_d = esp_ble_resolve_adv_data(scan_rst->ble_adv, ESP_BLE_AD_TYPE_16SRV_CMPL, &uuid_le… in handle_ble_device_result()
357 …uint8_t *appearance_d = esp_ble_resolve_adv_data(scan_rst->ble_adv, ESP_BLE_AD_TYPE_APPEARANCE, &a… in handle_ble_device_result()
363 …uint8_t *adv_name = esp_ble_resolve_adv_data(scan_rst->ble_adv, ESP_BLE_AD_TYPE_NAME_CMPL, &adv_na… in handle_ble_device_result()
366 … adv_name = esp_ble_resolve_adv_data(scan_rst->ble_adv, ESP_BLE_AD_TYPE_NAME_SHORT, &adv_name_len); in handle_ble_device_result()
374 GAP_DBG_PRINTF("BLE: " ESP_BD_ADDR_STR ", ", ESP_BD_ADDR_HEX(scan_rst->bda)); in handle_ble_device_result()
375 GAP_DBG_PRINTF("RSSI: %d, ", scan_rst->rssi); in handle_ble_device_result()
378 GAP_DBG_PRINTF("ADDR_TYPE: '%s'", ble_addr_type_str(scan_rst->ble_addr_type)); in handle_ble_device_result()
385 …add_ble_scan_result(scan_rst->bda, scan_rst->ble_addr_type, appearance, adv_name, adv_name_len, sc… in handle_ble_device_result()
481 switch (scan_result->scan_rst.search_evt) { in ble_gap_event_handler()
[all …]
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/ble_spp_client/main/
Dspp_client_demo.c108 static esp_ble_gap_cb_param_t scan_rst; variable
243 …ble_gattc_open(gl_profile_tab[PROFILE_APP_ID].gattc_if, scan_rst.scan_rst.bda, scan_rst.scan_rst.b… in esp_gap_cb()
248 switch (scan_result->scan_rst.search_evt) { in esp_gap_cb()
250 esp_log_buffer_hex(GATTC_TAG, scan_result->scan_rst.bda, 6); in esp_gap_cb()
251 … Adv Data Len %d, Scan Response Len %d", scan_result->scan_rst.adv_data_len, scan_result->scan_rst in esp_gap_cb()
252 …adv_name = esp_ble_resolve_adv_data(scan_result->scan_rst.ble_adv, ESP_BLE_AD_TYPE_NAME_CMPL, &adv… in esp_gap_cb()
258 memcpy(&(scan_rst), scan_result, sizeof(esp_ble_gap_cb_param_t)); in esp_gap_cb()
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/main/
Dexample_ble_client_throughput.c391 switch (scan_result->scan_rst.search_evt) { in esp_gap_cb()
393 esp_log_buffer_hex(GATTC_TAG, scan_result->scan_rst.bda, 6); in esp_gap_cb()
394 … Adv Data Len %d, Scan Response Len %d", scan_result->scan_rst.adv_data_len, scan_result->scan_rst in esp_gap_cb()
395 adv_name = esp_ble_resolve_adv_data(scan_result->scan_rst.ble_adv, in esp_gap_cb()
406 … esp_ble_gap_set_prefer_conn_params(scan_result->scan_rst.bda, 32, 32, 0, 600); in esp_gap_cb()
408 …_ble_gattc_open(gl_profile_tab[PROFILE_A_APP_ID].gattc_if, scan_result->scan_rst.bda, BLE_ADDR_TYP… in esp_gap_cb()
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/gatt_security_client/main/
Dexample_ble_sec_gattc_demo.c439 switch (scan_result->scan_rst.search_evt) { in esp_gap_cb()
441 esp_log_buffer_hex(GATTC_TAG, scan_result->scan_rst.bda, 6); in esp_gap_cb()
442 … Adv Data Len %d, Scan Response Len %d", scan_result->scan_rst.adv_data_len, scan_result->scan_rst in esp_gap_cb()
443 adv_name = esp_ble_resolve_adv_data(scan_result->scan_rst.ble_adv, in esp_gap_cb()
455 …en(gl_profile_tab[PROFILE_A_APP_ID].gattc_if, scan_result->scan_rst.bda, scan_result->scan_rst.ble… in esp_gap_cb()
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/gattc_multi_connect/main/
Dgattc_multi_connect.c772 switch (scan_result->scan_rst.search_evt) { in esp_gap_cb()
774 esp_log_buffer_hex(GATTC_TAG, scan_result->scan_rst.bda, 6); in esp_gap_cb()
775 … Adv Data Len %d, Scan Response Len %d", scan_result->scan_rst.adv_data_len, scan_result->scan_rst in esp_gap_cb()
776 adv_name = esp_ble_resolve_adv_data(scan_result->scan_rst.ble_adv, in esp_gap_cb()
797 …en(gl_profile_tab[PROFILE_A_APP_ID].gattc_if, scan_result->scan_rst.bda, scan_result->scan_rst.ble… in esp_gap_cb()
807 …en(gl_profile_tab[PROFILE_B_APP_ID].gattc_if, scan_result->scan_rst.bda, scan_result->scan_rst.ble… in esp_gap_cb()
817 …en(gl_profile_tab[PROFILE_C_APP_ID].gattc_if, scan_result->scan_rst.bda, scan_result->scan_rst.ble… in esp_gap_cb()
/hal_espressif-3.6.0/components/bt/host/bluedroid/btc/profile/std/gap/
Dbtc_gap_ble.c560 param.scan_rst.search_evt = event; in btc_search_callback()
576 bdcpy(param.scan_rst.bda, p_data->inq_res.bd_addr); in btc_search_callback()
577 param.scan_rst.dev_type = p_data->inq_res.device_type; in btc_search_callback()
578 param.scan_rst.rssi = p_data->inq_res.rssi; in btc_search_callback()
579 param.scan_rst.ble_addr_type = p_data->inq_res.ble_addr_type; in btc_search_callback()
580 param.scan_rst.ble_evt_type = p_data->inq_res.ble_evt_type; in btc_search_callback()
581 param.scan_rst.flag = p_data->inq_res.flag; in btc_search_callback()
582 param.scan_rst.num_resps = 1; in btc_search_callback()
583 param.scan_rst.adv_data_len = p_data->inq_res.adv_data_len; in btc_search_callback()
584 param.scan_rst.scan_rsp_len = p_data->inq_res.scan_rsp_len; in btc_search_callback()
[all …]
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/gatt_client/tutorial/
DGatt_Client_Example_Walkthrough.md336 …} scan_rst; /*!< Event parameter of ESP_GAP_BLE_SCAN_RESULT_EV…
358 switch (scan_result->scan_rst.search_evt) {
360 esp_log_buffer_hex(GATTC_TAG, scan_result->scan_rst.bda, 6);
361 … Adv Data Len %d, Scan Response Len %d", scan_result->scan_rst.adv_data_len, scan_result->scan_rst
362 …adv_name = esp_ble_resolve_adv_data(scan_result->scan_rst.ble_adv, ESP_BLE_AD_TYPE_NAME_CMPL, &adv…
373 …en(gl_profile_tab[PROFILE_A_APP_ID].gattc_if, scan_result->scan_rst.bda, scan_result->scan_rst.ble…
389 esp_log_buffer_hex(GATTC_TAG, scan_result->scan_rst.bda, 6);
395 … Adv Data Len %d, Scan Response Len %d", scan_result->scan_rst.adv_data_len, scan_result->scan_rst
398 …ta()` function, which takes the advertised data stored in `scan_result->scan_rst.ble_adv`, the typ…
401 adv_name = esp_ble_resolve_adv_data(scan_result->scan_rst.ble_adv, ESP_BLE_AD_TYPE_NAME_CMPL, &adv_…
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/main/
Dgattc_gatts_coex.c278 switch (scan_result->scan_rst.search_evt) { in gap_event_handler()
280 adv_name = esp_ble_resolve_adv_data(scan_result->scan_rst.ble_adv, in gap_event_handler()
288 …profile_tab[GATTC_PROFILE_C_APP_ID].gattc_if, scan_result->scan_rst.bda, scan_result->scan_rst.ble… in gap_event_handler()
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/gattc_multi_connect/tutorial/
DGatt_Client_Multi_Connection_Example_Walkthrough.md66 …adv_name = esp_ble_resolve_adv_data(scan_result->scan_rst.ble_adv, ESP_BLE_AD_TYPE_NAME_CMPL, &adv…
81 … memcpy(gl_profile_tab[PROFILE_A_APP_ID].remote_bda, scan_result->scan_rst.bda, 6);
89 … memcpy(gl_profile_tab[PROFILE_B_APP_ID].remote_bda, scan_result->scan_rst.bda, 6);
96 … memcpy(gl_profile_tab[PROFILE_C_APP_ID].remote_bda, scan_result->scan_rst.bda, 6);
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/ble_ibeacon/
DREADME.md48 switch (scan_result->scan_rst.search_evt) {
/hal_espressif-3.6.0/components/bt/host/bluedroid/api/include/api/
Desp_gap_ble_api.h942 …} scan_rst; /*!< Event parameter of ESP_GAP_BLE_SCAN_RESULT_EV… member