Home
last modified time | relevance | path

Searched refs:conn_handle (Results 1 – 25 of 63) sorted by relevance

123

/hal_espressif-3.5.0/examples/bluetooth/nimble/blecent/main/
Dmain.c43 blecent_on_subscribe(uint16_t conn_handle, in blecent_on_subscribe() argument
50 error->status, conn_handle, attr->handle); in blecent_on_subscribe()
60 blecent_on_write(uint16_t conn_handle, in blecent_on_write() argument
67 error->status, conn_handle, attr->handle); in blecent_on_write()
76 const struct peer *peer = peer_find(conn_handle); in blecent_on_write()
90 rc = ble_gattc_write_flat(conn_handle, dsc->dsc.handle, in blecent_on_write()
101 return ble_gap_terminate(peer->conn_handle, BLE_ERR_REM_USER_CONN_TERM); in blecent_on_write()
109 blecent_on_read(uint16_t conn_handle, in blecent_on_read() argument
115 conn_handle); in blecent_on_read()
128 const struct peer *peer = peer_find(conn_handle); in blecent_on_read()
[all …]
Dpeer.c57 peer_dsc_disced(uint16_t conn_handle, const struct ble_gatt_error *error,
62 peer_find(uint16_t conn_handle) in peer_find() argument
67 if (peer->conn_handle == conn_handle) { in peer_find()
196 rc = ble_gattc_disc_all_dscs(peer->conn_handle, in peer_disc_dscs()
215 peer_dsc_disced(uint16_t conn_handle, const struct ble_gatt_error *error, in peer_dsc_disced() argument
223 assert(peer->conn_handle == conn_handle); in peer_dsc_disced()
370 peer_chr_disced(uint16_t conn_handle, const struct ble_gatt_error *error, in peer_chr_disced() argument
377 assert(peer->conn_handle == conn_handle); in peer_chr_disced()
420 rc = ble_gattc_disc_all_chrs(peer->conn_handle, in peer_disc_chrs()
600 peer_svc_disced(uint16_t conn_handle, const struct ble_gatt_error *error, in peer_svc_disced() argument
[all …]
Dblecent.h78 uint16_t conn_handle; member
92 int peer_disc_all(uint16_t conn_handle, peer_disc_fn *disc_cb,
102 int peer_delete(uint16_t conn_handle);
103 int peer_add(uint16_t conn_handle);
106 peer_find(uint16_t conn_handle);
/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/hf_client/
Dbta_hf_client_rfc.c51 if (port_handle != bta_hf_client_cb.scb.conn_handle) { in bta_hf_client_port_cback()
53 port_handle, bta_hf_client_cb.scb.conn_handle); in bta_hf_client_port_cback()
79 … code, port_handle, bta_hf_client_cb.scb.conn_handle, bta_hf_client_cb.scb.serv_handle); in bta_hf_client_mgmt_cback()
82 if ((code != PORT_SUCCESS) && (port_handle != bta_hf_client_cb.scb.conn_handle)) { in bta_hf_client_mgmt_cback()
88 …if ((bta_hf_client_cb.scb.conn_handle && (port_handle == bta_hf_client_cb.scb.conn_handle)) || /* … in bta_hf_client_mgmt_cback()
97 else if (port_handle == bta_hf_client_cb.scb.conn_handle) { in bta_hf_client_mgmt_cback()
202 … FALSE, BTA_HF_CLIENT_MTU, bta_hf_client_cb.scb.peer_addr, &(bta_hf_client_cb.scb.conn_handle), in bta_hf_client_rfc_do_open()
204 bta_hf_client_setup_port(bta_hf_client_cb.scb.conn_handle); in bta_hf_client_rfc_do_open()
205 …APPL_TRACE_DEBUG("bta_hf_client_rfc_do_open : conn_handle = %d", bta_hf_client_cb.scb.conn_handle); in bta_hf_client_rfc_do_open()
228 if (bta_hf_client_cb.scb.conn_handle) { in bta_hf_client_rfc_do_close()
[all …]
/hal_espressif-3.5.0/examples/bluetooth/nimble/throughput_app/blecent_throughput/main/
Dmain.c85 blecent_notify(uint16_t conn_handle, uint16_t val_handle, in blecent_notify() argument
91 rc = ble_gattc_write_flat(conn_handle, val_handle, in blecent_notify()
102 return ble_gap_terminate(peer->conn_handle, BLE_ERR_REM_USER_CONN_TERM); in blecent_notify()
105 static int blecent_write(uint16_t conn_handle, uint16_t val_handle, in blecent_write() argument
121 rc = ble_gattc_write_no_rsp_flat(conn_handle, val_handle, &value, sizeof value); in blecent_write()
149 return ble_gap_terminate(peer->conn_handle, BLE_ERR_REM_USER_CONN_TERM); in blecent_write()
153 blecent_repeat_read(uint16_t conn_handle, in blecent_repeat_read() argument
169 static int blecent_read(uint16_t conn_handle, uint16_t val_handle, in blecent_read() argument
186 rc = ble_gattc_read(peer->conn_handle, val_handle, in blecent_read()
209 return ble_gap_terminate(peer->conn_handle, BLE_ERR_REM_USER_CONN_TERM); in blecent_read()
[all …]
Dpeer.c44 peer_dsc_disced(uint16_t conn_handle, const struct ble_gatt_error *error,
49 peer_find(uint16_t conn_handle) in peer_find() argument
54 if (peer->conn_handle == conn_handle) { in peer_find()
183 rc = ble_gattc_disc_all_dscs(peer->conn_handle, in peer_disc_dscs()
202 peer_dsc_disced(uint16_t conn_handle, const struct ble_gatt_error *error, in peer_dsc_disced() argument
210 assert(peer->conn_handle == conn_handle); in peer_dsc_disced()
357 peer_chr_disced(uint16_t conn_handle, const struct ble_gatt_error *error, in peer_chr_disced() argument
364 assert(peer->conn_handle == conn_handle); in peer_chr_disced()
408 rc = ble_gattc_disc_all_chrs(peer->conn_handle, in peer_disc_chrs()
588 peer_svc_disced(uint16_t conn_handle, const struct ble_gatt_error *error, in peer_svc_disced() argument
[all …]
Dgattc.h67 uint16_t conn_handle; member
81 int peer_disc_all(uint16_t conn_handle, peer_disc_fn *disc_cb,
91 int peer_delete(uint16_t conn_handle);
92 int peer_add(uint16_t conn_handle);
95 peer_find(uint16_t conn_handle);
/hal_espressif-3.5.0/components/bt/esp_ble_mesh/api/core/
Desp_ble_mesh_proxy_api.c79 esp_err_t esp_ble_mesh_proxy_client_disconnect(uint8_t conn_handle) in esp_ble_mesh_proxy_client_disconnect() argument
90 arg.proxy_client_disconnect.conn_handle = conn_handle; in esp_ble_mesh_proxy_client_disconnect()
96 esp_err_t esp_ble_mesh_proxy_client_set_filter_type(uint8_t conn_handle, uint16_t net_idx, in esp_ble_mesh_proxy_client_set_filter_type() argument
112 arg.proxy_client_set_filter_type.conn_handle = conn_handle; in esp_ble_mesh_proxy_client_set_filter_type()
120 esp_err_t esp_ble_mesh_proxy_client_add_filter_addr(uint8_t conn_handle, uint16_t net_idx, in esp_ble_mesh_proxy_client_add_filter_addr() argument
136 arg.proxy_client_add_filter_addr.conn_handle = conn_handle; in esp_ble_mesh_proxy_client_add_filter_addr()
145 esp_err_t esp_ble_mesh_proxy_client_remove_filter_addr(uint8_t conn_handle, uint16_t net_idx, in esp_ble_mesh_proxy_client_remove_filter_addr() argument
161 arg.proxy_client_remove_filter_addr.conn_handle = conn_handle; in esp_ble_mesh_proxy_client_remove_filter_addr()
/hal_espressif-3.5.0/examples/bluetooth/nimble/ble_spp/spp_client/main/
Dpeer.c44 peer_dsc_disced(uint16_t conn_handle, const struct ble_gatt_error *error,
49 peer_find(uint16_t conn_handle) in peer_find() argument
54 if (peer->conn_handle == conn_handle) { in peer_find()
183 rc = ble_gattc_disc_all_dscs(peer->conn_handle, in peer_disc_dscs()
202 peer_dsc_disced(uint16_t conn_handle, const struct ble_gatt_error *error, in peer_dsc_disced() argument
210 assert(peer->conn_handle == conn_handle); in peer_dsc_disced()
357 peer_chr_disced(uint16_t conn_handle, const struct ble_gatt_error *error, in peer_chr_disced() argument
364 assert(peer->conn_handle == conn_handle); in peer_chr_disced()
407 rc = ble_gattc_disc_all_chrs(peer->conn_handle, in peer_disc_chrs()
587 peer_svc_disced(uint16_t conn_handle, const struct ble_gatt_error *error, in peer_svc_disced() argument
[all …]
Dmain.c42 connection_handle = peer->conn_handle; in ble_spp_client_set_handles()
56 "conn_handle=%d\n", status, peer->conn_handle); in ble_spp_client_on_disc_complete()
57 ble_gap_terminate(peer->conn_handle, BLE_ERR_REM_USER_CONN_TERM); in ble_spp_client_on_disc_complete()
66 "conn_handle=%d\n", status, peer->conn_handle); in ble_spp_client_on_disc_complete()
235 rc = ble_gap_conn_find(event->connect.conn_handle, &desc); in ble_spp_client_gap_event()
241 rc = peer_add(event->connect.conn_handle); in ble_spp_client_gap_event()
248 rc = peer_disc_all(event->connect.conn_handle, in ble_spp_client_gap_event()
270 peer_delete(event->disconnect.conn.conn_handle); in ble_spp_client_gap_event()
288 event->notify_rx.conn_handle, in ble_spp_client_gap_event()
298 event->mtu.conn_handle, in ble_spp_client_gap_event()
Dble_spp_client.h65 uint16_t conn_handle; member
79 int peer_disc_all(uint16_t conn_handle, peer_disc_fn *disc_cb,
89 int peer_delete(uint16_t conn_handle);
90 int peer_add(uint16_t conn_handle);
93 peer_find(uint16_t conn_handle);
/hal_espressif-3.5.0/components/bt/common/btc/profile/esp/blufi/nimble_host/
Desp_blufi.c31 static uint16_t conn_handle; variable
41 static int gatt_svr_access_cb(uint16_t conn_handle, uint16_t attr_handle,
106 static size_t write_value(uint16_t conn_handle, uint16_t attr_handle, in write_value() argument
135 static size_t read_value(uint16_t conn_handle, uint16_t attr_handle, in read_value() argument
163 static int gatt_svr_access_cb(uint16_t conn_handle, uint16_t attr_handle, in gatt_svr_access_cb() argument
169 return read_value(conn_handle, attr_handle, in gatt_svr_access_cb()
172 return write_value(conn_handle, attr_handle, in gatt_svr_access_cb()
257 rc = ble_gap_conn_find(event->connect.conn_handle, &desc); in esp_blufi_gap_event()
261 param.connect.conn_id = event->connect.conn_handle; in esp_blufi_gap_event()
263 conn_handle = event->connect.conn_handle; in esp_blufi_gap_event()
[all …]
/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/hf_ag/
Dbta_ag_rfc.c101 if (port_handle != p_scb->conn_handle) { in bta_ag_port_cback()
103 port_handle, p_scb->conn_handle, handle); in bta_ag_port_cback()
138 if ((code != PORT_SUCCESS) && (port_handle != p_scb->conn_handle)) { in bta_ag_mgmt_cback()
144 if (p_scb->conn_handle) { in bta_ag_mgmt_cback()
146 if (port_handle == p_scb->conn_handle) in bta_ag_mgmt_cback()
161 } else if (port_handle == p_scb->conn_handle) { in bta_ag_mgmt_cback()
360 FALSE, BTA_AG_MTU, p_scb->peer_addr, &(p_scb->conn_handle), in bta_ag_rfc_do_open()
362 bta_ag_setup_port(p_scb, p_scb->conn_handle); in bta_ag_rfc_do_open()
363 APPL_TRACE_DEBUG("bta_ag_rfc_do_open : conn_handle = %d", p_scb->conn_handle); in bta_ag_rfc_do_open()
385 if (p_scb->conn_handle) { in bta_ag_rfc_do_close()
[all …]
/hal_espressif-3.5.0/examples/bluetooth/nimble/bleprph/main/
Dmain.c45 desc->conn_handle, desc->our_ota_addr.type); in bleprph_print_conn_desc()
159 rc = ble_gap_conn_find(event->connect.conn_handle, &desc); in bleprph_gap_event()
184 rc = ble_gap_conn_find(event->conn_update.conn_handle, &desc); in bleprph_gap_event()
200 rc = ble_gap_conn_find(event->enc_change.conn_handle, &desc); in bleprph_gap_event()
209 event->subscribe.conn_handle, in bleprph_gap_event()
220 event->mtu.conn_handle, in bleprph_gap_event()
232 rc = ble_gap_conn_find(event->repeat_pairing.conn_handle, &desc); in bleprph_gap_event()
250 rc = ble_sm_inject_io(event->passkey.conn_handle, &pkey); in bleprph_gap_event()
262 rc = ble_sm_inject_io(event->passkey.conn_handle, &pkey); in bleprph_gap_event()
270 rc = ble_sm_inject_io(event->passkey.conn_handle, &pkey); in bleprph_gap_event()
[all …]
/hal_espressif-3.5.0/components/bt/esp_ble_mesh/mesh_core/nimble_host/
Dmesh_bearer_adapt.c144 static int ble_on_subscribe(uint16_t conn_handle, in ble_on_subscribe() argument
154 error->status, conn_handle, attr->handle); in ble_on_subscribe()
157 … if ((bt_mesh_gattc_info[j].conn.handle == conn_handle) && bt_mesh_gattc_info[j].ccc_handle) { in ble_on_subscribe()
197 …ble_gattc_write_flat(conn_handle, bt_mesh_gattc_info[i].ccc_handle, value, sizeof(value), ble_on_s… in ble_on_subscribe()
201 static int dsc_disced(uint16_t conn_handle, const struct ble_gatt_error *error, in dsc_disced() argument
221 … if ((bt_mesh_gattc_info[j].conn.handle == conn_handle) && bt_mesh_gattc_info[j].data_out_handle) { in dsc_disced()
228 … if ((bt_mesh_gattc_info[j].conn.handle == conn_handle) && bt_mesh_gattc_info[j].ccc_handle) { in dsc_disced()
235 …ble_gattc_write_flat(conn_handle, bt_mesh_gattc_info[i].ccc_handle, value, sizeof(value), ble_on_s… in dsc_disced()
237 …ble_gattc_disc_all_dscs(conn_handle, bt_mesh_gattc_info[j].data_out_handle, 0xffff, dsc_disced, (v… in dsc_disced()
252 static int chr_disced(uint16_t conn_handle, const struct ble_gatt_error *error, in chr_disced() argument
[all …]
/hal_espressif-3.5.0/components/bt/esp_ble_mesh/api/core/include/
Desp_ble_mesh_proxy_api.h71 esp_err_t esp_ble_mesh_proxy_client_disconnect(uint8_t conn_handle);
83 esp_err_t esp_ble_mesh_proxy_client_set_filter_type(uint8_t conn_handle, uint16_t net_idx,
97 esp_err_t esp_ble_mesh_proxy_client_add_filter_addr(uint8_t conn_handle, uint16_t net_idx,
111 esp_err_t esp_ble_mesh_proxy_client_remove_filter_addr(uint8_t conn_handle, uint16_t net_idx,
/hal_espressif-3.5.0/components/bt/esp_ble_mesh/mesh_core/
Dproxy_client.h81 uint8_t conn_handle, uint16_t net_idx);
82 typedef void (*proxy_client_disconnect_cb_t)(const bt_mesh_addr_t *addr, uint8_t conn_handle,
84 typedef void (*proxy_client_recv_filter_status_cb_t)(uint8_t conn_handle, uint16_t src, uint16_t ne…
96 int bt_mesh_proxy_client_disconnect(uint8_t conn_handle);
102 int bt_mesh_proxy_client_cfg_send(uint8_t conn_handle, uint16_t net_idx,
Dproxy_client.c724 int bt_mesh_proxy_client_disconnect(uint8_t conn_handle) in bt_mesh_proxy_client_disconnect() argument
728 if (conn_handle >= BLE_MESH_MAX_CONN) { in bt_mesh_proxy_client_disconnect()
733 BT_DBG("conn_handle %d", conn_handle); in bt_mesh_proxy_client_disconnect()
735 conn = servers[conn_handle].conn; in bt_mesh_proxy_client_disconnect()
737 BT_ERR("Not connected, conn handle %d", conn_handle); in bt_mesh_proxy_client_disconnect()
935 int bt_mesh_proxy_client_cfg_send(uint8_t conn_handle, uint16_t net_idx, in bt_mesh_proxy_client_cfg_send() argument
940 … if (conn_handle >= BLE_MESH_MAX_CONN || !pdu || pdu->opcode > BLE_MESH_PROXY_CFG_FILTER_REMOVE) { in bt_mesh_proxy_client_cfg_send()
945 BT_DBG("conn_handle %d, net_idx 0x%04x", conn_handle, net_idx); in bt_mesh_proxy_client_cfg_send()
947 conn = servers[conn_handle].conn; in bt_mesh_proxy_client_cfg_send()
949 BT_ERR("Not connected, conn handle %d", conn_handle); in bt_mesh_proxy_client_cfg_send()
[all …]
/hal_espressif-3.5.0/examples/bluetooth/nimble/throughput_app/bleprph_throughput/main/
Dmain.c33 static uint16_t conn_handle; variable
67 desc->conn_handle, desc->our_ota_addr.type); in bleprph_print_conn_desc()
198 rc = ble_gattc_notify_custom(conn_handle, notify_handle, om); in notify_task()
257 rc = ble_hs_hci_util_set_data_len(event->connect.conn_handle, in gatts_gap_event()
264 conn_handle = event->connect.conn_handle; in gatts_gap_event()
278 rc = ble_gap_conn_find(event->conn_update.conn_handle, &desc); in gatts_gap_event()
321 event->mtu.conn_handle, in gatts_gap_event()
Dgatt_svr.c46 gatt_svr_read_write_long_test(uint16_t conn_handle, uint16_t attr_handle,
96 gatt_svr_chr_write(uint16_t conn_handle, uint16_t attr_handle, in gatt_svr_chr_write() argument
117 gatt_svr_read_write_long_test(uint16_t conn_handle, uint16_t attr_handle, in gatt_svr_read_write_long_test() argument
130 rc = gatt_svr_chr_write(conn_handle, attr_handle, in gatt_svr_read_write_long_test()
145 rc = gatt_svr_chr_write(conn_handle, attr_handle, in gatt_svr_read_write_long_test()
/hal_espressif-3.5.0/examples/bluetooth/nimble/blehr/main/
Dmain.c39 static uint16_t conn_handle; variable
177 rc = ble_gattc_notify_custom(conn_handle, hrs_hrm_handle, om); in blehr_tx_hrate()
198 conn_handle = event->connect.conn_handle; in blehr_gap_event()
224 ESP_LOGI("BLE_GAP_SUBSCRIBE_EVENT", "conn_handle from subscribe=%d", conn_handle); in blehr_gap_event()
229 event->mtu.conn_handle, in blehr_gap_event()
Dgatt_svr.c34 gatt_svr_chr_access_heart_rate(uint16_t conn_handle, uint16_t attr_handle,
38 gatt_svr_chr_access_device_info(uint16_t conn_handle, uint16_t attr_handle,
91 gatt_svr_chr_access_heart_rate(uint16_t conn_handle, uint16_t attr_handle, in gatt_svr_chr_access_heart_rate() argument
112 gatt_svr_chr_access_device_info(uint16_t conn_handle, uint16_t attr_handle, in gatt_svr_chr_access_device_info() argument
/hal_espressif-3.5.0/examples/bluetooth/nimble/ble_spp/spp_server/main/
Dmain.c50 desc->conn_handle, desc->our_ota_addr.type); in ble_spp_server_print_conn_desc()
164 rc = ble_gap_conn_find(event->connect.conn_handle, &desc); in ble_spp_server_gap_event()
168 connection_handle = event->connect.conn_handle; in ble_spp_server_gap_event()
190 rc = ble_gap_conn_find(event->conn_update.conn_handle, &desc); in ble_spp_server_gap_event()
204 event->mtu.conn_handle, in ble_spp_server_gap_event()
256 static int ble_svc_gatt_handler(uint16_t conn_handle, uint16_t attr_handle,struct ble_gatt_access_… in ble_svc_gatt_handler() argument
264 …ESP_LOGI(tag,"Data received in write event,conn_handle = %x,attr_handle = %x",conn_handle,attr_han… in ble_svc_gatt_handler()
/hal_espressif-3.5.0/examples/system/ota/advanced_https_ota/main/ble_helper/
Dnimble_gatts.c40 gatt_svr_chr_access_sec_test(uint16_t conn_handle, uint16_t attr_handle,
88 gatt_svr_chr_access_sec_test(uint16_t conn_handle, uint16_t attr_handle, in gatt_svr_chr_access_sec_test() argument
228 rc = ble_gap_conn_find(event->connect.conn_handle, &desc); in bleprph_gap_event()
253 rc = ble_gap_conn_find(event->conn_update.conn_handle, &desc); in bleprph_gap_event()
267 event->mtu.conn_handle, in bleprph_gap_event()
284 desc->conn_handle, desc->our_ota_addr.type); in bleprph_print_conn_desc()
/hal_espressif-3.5.0/components/protocomm/src/transports/
Dprotocomm_nimble.c94 gatt_svr_chr_access(uint16_t conn_handle, uint16_t attr_handle,
98 gatt_svr_dsc_access(uint16_t conn_handle, uint16_t attr_handle,
223 rc = ble_gap_conn_find(event->connect.conn_handle, &desc); in simple_ble_gap_event()
248 event->mtu.conn_handle, in simple_ble_gap_event()
275 gatt_svr_dsc_access(uint16_t conn_handle, uint16_t attr_handle, struct in gatt_svr_dsc_access() argument
292 gatt_svr_chr_access(uint16_t conn_handle, uint16_t attr_handle, in gatt_svr_chr_access() argument
360 conn_handle, in gatt_svr_chr_access()
539 event->disconnect.conn.conn_handle); in transport_simple_ble_disconnect()
543 …->close_transport_session(protoble_internal->pc_ble->sec_inst, event->disconnect.conn.conn_handle); in transport_simple_ble_disconnect()
554 ESP_LOGD(TAG, "Inside BLE connect w/ conn_id - %d", event->connect.conn_handle); in transport_simple_ble_connect()
[all …]

123