Home
last modified time | relevance | path

Searched refs:transport (Results 1 – 25 of 147) sorted by relevance

123456

/hal_espressif-3.4.0/examples/provisioning/wifi_prov_mgr/
Dwifi_prov_mgr_test.py64 transport = esp_prov.get_transport(provmode, devname)
65 if transport is None:
69 if not esp_prov.version_match(transport, protover):
73 if not esp_prov.has_capability(transport, 'wifi_scan'):
77 if not esp_prov.establish_session(transport, security):
81 if not esp_prov.custom_data(transport, security, 'My Custom Data'):
85 if not esp_prov.send_wifi_config(transport, security, ap_ssid, ap_password):
89 if not esp_prov.apply_wifi_config(transport, security):
92 if not esp_prov.wait_wifi_connected(transport, security):
/hal_espressif-3.4.0/examples/provisioning/legacy/ble_prov/
Dble_prov_test.py64 transport = esp_prov.get_transport(provmode, devname)
65 if transport is None:
69 if not esp_prov.version_match(transport, protover):
73 if not esp_prov.establish_session(transport, security):
77 if not esp_prov.send_wifi_config(transport, security, ap_ssid, ap_password):
81 if not esp_prov.apply_wifi_config(transport, security):
84 if not esp_prov.wait_wifi_connected(transport, security):
/hal_espressif-3.4.0/tools/test_apps/protocols/mqtt/publish_connect_test/
Dapp_test.py50 … def __init__(self, dut, transport, qos, repeat, published, queue, publish_cfg, log_details=False): argument
61 self.publish_cfg['transport'] = transport
97 transport = self.publish_cfg['transport']
98 broker_host = self.publish_cfg['broker_host_' + transport]
99 broker_port = self.publish_cfg['broker_port_' + transport]
103 … .format(transport, qos, MqttPublisher.published, queue, MqttPublisher.expected_data))
106 if transport in ['ws', 'wss']:
107 self.client = mqtt.Client(transport='websockets')
114 if transport in ['ssl', 'wss']:
129 …self.dut.write(' '.join(str(x) for x in (transport, self.sample_string, self.repeat, MqttPublisher…
[all …]
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/l2cap/
Dl2c_link.c280 void l2c_link_sec_comp (BD_ADDR p_bda, tBT_TRANSPORT transport, void *p_ref_data, UINT8 status) in l2c_link_sec_comp() argument
289 UNUSED(transport); in l2c_link_sec_comp()
359 tBT_TRANSPORT transport = BT_TRANSPORT_BR_EDR; in l2c_link_hci_disc_comp() local
386 if (p_lcb->transport == BT_TRANSPORT_LE) { in l2c_link_hci_disc_comp()
410 if (p_lcb->transport == BT_TRANSPORT_BR_EDR) in l2c_link_hci_disc_comp()
424 transport = p_lcb->transport; in l2c_link_hci_disc_comp()
427 if (p_lcb->transport == BT_TRANSPORT_LE) { in l2c_link_hci_disc_comp()
429 btm_acl_removed (p_lcb->remote_bd_addr, p_lcb->transport); in l2c_link_hci_disc_comp()
448 p_lcb->remote_bd_addr, FALSE, p_lcb->disc_reason, p_lcb->transport); in l2c_link_hci_disc_comp()
460 if (l2cu_create_conn(p_lcb, transport)) { in l2c_link_hci_disc_comp()
[all …]
Dl2c_api.c813 BOOLEAN L2CA_SetIdleTimeoutByBdAddr(BD_ADDR bd_addr, UINT16 timeout, tBT_TRANSPORT transport) in L2CA_SetIdleTimeoutByBdAddr() argument
819 p_lcb = l2cu_find_lcb_by_bd_addr( bd_addr, transport); in L2CA_SetIdleTimeoutByBdAddr()
1400 if (!p_lcb->in_use || p_lcb->transport != BT_TRANSPORT_LE) { in L2CA_DeregisterLECoc()
1494 if (p_ccb->p_lcb->transport == BT_TRANSPORT_LE) in L2CA_ConnectLECocReq()
1655 tBT_TRANSPORT transport = BT_TRANSPORT_BR_EDR; in L2CA_ConnectFixedChnl() local
1675 transport = BT_TRANSPORT_LE; in L2CA_ConnectFixedChnl()
1682 if ((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda, transport)) != NULL) { in L2CA_ConnectFixedChnl()
1687 if (transport == BT_TRANSPORT_LE) { in L2CA_ConnectFixedChnl()
1719 (fixed_cid, p_lcb->remote_bd_addr, TRUE, 0, transport); in L2CA_ConnectFixedChnl()
1725 if ((p_lcb = l2cu_allocate_lcb (rem_bda, FALSE, transport)) == NULL) { in L2CA_ConnectFixedChnl()
[all …]
/hal_espressif-3.4.0/examples/provisioning/legacy/softap_prov/
Dsoftap_prov_test.py92 transport = esp_prov.get_transport(provmode, softap_endpoint)
93 if transport is None:
97 if not esp_prov.version_match(transport, protover):
101 if not esp_prov.establish_session(transport, security):
105 if not esp_prov.send_wifi_config(transport, security, ap_ssid, ap_password):
109 if not esp_prov.apply_wifi_config(transport, security):
112 if not esp_prov.wait_wifi_connected(transport, security):
/hal_espressif-3.4.0/tools/test_apps/protocols/mqtt/publish_connect_test/main/
Dpublish_test.c142 static void configure_client(char *transport) in configure_client() argument
146 if (0 == strcmp(transport, "tcp")) { in configure_client()
148 } else if (0 == strcmp(transport, "ssl")) { in configure_client()
150 } else if (0 == strcmp(transport, "ws")) { in configure_client()
152 } else if (0 == strcmp(transport, "wss")) { in configure_client()
155 ESP_LOGE(TAG, "Unexpected transport %s", transport); in configure_client()
194 char transport[32]; in publish_test() local
206 …sscanf(line, "%s %s %d %d %d %d", transport, pattern, &repeat, &expected_published, &qos_test, &en… in publish_test()
210 configure_client(transport); in publish_test()
DKconfig.projbuild7 URL of an mqtt broker for ssl transport
13 URL of an mqtt broker for tcp transport
19 URL of an mqtt broker for ws transport
25 URL of an mqtt broker for wss transport
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/gatt/
Dgatt_attr.c46 tGATT_DISCONN_REASON reason, tBT_TRANSPORT transport);
114 static tGATT_PROFILE_CLCB *gatt_profile_find_clcb_by_bd_addr(BD_ADDR bda, tBT_TRANSPORT transport) in gatt_profile_find_clcb_by_bd_addr() argument
120 if (p_clcb->in_use && p_clcb->transport == transport && in gatt_profile_find_clcb_by_bd_addr()
148 p_clcb->transport = tranport; in gatt_profile_clcb_alloc()
290 tBT_TRANSPORT transport) in gatt_connect_cback() argument
298 tGATT_PROFILE_CLCB *p_clcb = gatt_profile_find_clcb_by_bd_addr(bda, transport); in gatt_connect_cback()
300 p_clcb = gatt_profile_clcb_alloc (conn_id, bda, transport); in gatt_connect_cback()
307 if (GATT_GetConnIdIfConnected (gatt_cb.gatt_if, bda, &p_clcb->conn_id, transport)) { in gatt_connect_cback()
551 void GATT_ConfigServiceChangeCCC (BD_ADDR remote_bda, BOOLEAN enable, tBT_TRANSPORT transport) in GATT_ConfigServiceChangeCCC() argument
553 tGATT_PROFILE_CLCB *p_clcb = gatt_profile_find_clcb_by_bd_addr (remote_bda, transport); in GATT_ConfigServiceChangeCCC()
[all …]
Dgatt_main.c47 UINT16 reason, tBT_TRANSPORT transport);
222 …DR rem_bda, tBLE_ADDR_TYPE bd_addr_type, tGATT_TCB *p_tcb, tBT_TRANSPORT transport, BOOLEAN is_aux) in gatt_connect() argument
230 if (transport == BT_TRANSPORT_LE) { in gatt_connect()
351 (BTM_GetHCIConnHandle(p_tcb->peer_bda, p_tcb->transport) != GATT_INVALID_ACL_HANDLE)) { in gatt_update_app_use_link_flag()
355 GATT_SetIdleTimeout(p_tcb->peer_bda, GATT_LINK_NO_IDLE_TIMEOUT, p_tcb->transport); in gatt_update_app_use_link_flag()
361 … GATT_SetIdleTimeout(p_tcb->peer_bda, GATT_LINK_IDLE_TIMEOUT_WHEN_NO_APP, p_tcb->transport); in gatt_update_app_use_link_flag()
378 … tBLE_ADDR_TYPE bd_addr_type, tBT_TRANSPORT transport, BOOLEAN is_aux) in gatt_act_connect() argument
384 if ((p_tcb = gatt_find_tcb_by_addr(bd_addr, transport)) != NULL) { in gatt_act_connect()
390 transport == BT_TRANSPORT_LE ) { in gatt_act_connect()
391 if (!gatt_connect(bd_addr, bd_addr_type, p_tcb, transport, is_aux)) { in gatt_act_connect()
[all …]
Dgatt_auth.c167 void gatt_enc_cmpl_cback(BD_ADDR bd_addr, tBT_TRANSPORT transport, void *p_ref_data, tBTM_STATUS re… in gatt_enc_cmpl_cback() argument
175 if ((p_tcb = gatt_find_tcb_by_addr(bd_addr, transport)) != NULL) { in gatt_enc_cmpl_cback()
184 BTM_GetSecurityFlagsByTransport(bd_addr, &sec_flag, transport); in gatt_enc_cmpl_cback()
315 BTM_GetSecurityFlagsByTransport(p_tcb->peer_bda, &sec_flag, p_clcb->p_tcb->transport); in gatt_determine_sec_act()
361 if (p_tcb->transport == BT_TRANSPORT_LE && in gatt_determine_sec_act()
410 BTM_GetSecurityFlagsByTransport(p_tcb->peer_bda, &sec_flag, p_tcb->transport); in gatt_get_link_encrypt_status()
493 …btm_status = BTM_SetEncryption(p_tcb->peer_bda, p_tcb->transport , gatt_enc_cmpl_cback, &btm_ble_s… in gatt_security_check_start()
/hal_espressif-3.4.0/components/esp_local_ctrl/src/
Desp_local_ctrl.c50 if (!config->transport) { in esp_local_ctrl_start()
91 if (config->transport->copy_config) { in esp_local_ctrl_start()
92 ret = config->transport->copy_config(&local_ctrl_inst_ctx->config.transport_config, in esp_local_ctrl_start()
104 if (config->transport->declare_ep) { in esp_local_ctrl_start()
109 ret = config->transport->declare_ep(&local_ctrl_inst_ctx->config.transport_config, in esp_local_ctrl_start()
115 ret = config->transport->declare_ep(&local_ctrl_inst_ctx->config.transport_config, in esp_local_ctrl_start()
121 ret = config->transport->declare_ep(&local_ctrl_inst_ctx->config.transport_config, in esp_local_ctrl_start()
136 if (config->transport->start_service) { in esp_local_ctrl_start()
137 ret = config->transport->start_service(local_ctrl_inst_ctx->pc, in esp_local_ctrl_start()
187 if (local_ctrl_inst_ctx->config.transport->free_config) { in esp_local_ctrl_stop()
[all …]
/hal_espressif-3.4.0/docs/en/api-reference/provisioning/
Dprovisioning.rst9transport protocol. The framework provides an ability to add support for any other transport easil…
10 …or BLE with "just-works" security. Or the applications may consider the transport to be insecure a…
57 …ver) and BLE (GATT based) transport schemes. Following points need to be considered while selectin…
59 1. BLE based transport has an advantage that in the provisioning process, the BLE communication cha…
61 3. BLE transport however consumes ~110KB memory at runtime. If the product does not use the BLE or …
62 …. SoftAP based transport is highly interoperable; however as the same radio is shared between Soft…
63 5. SoftAP transport does not require much additional memory for the Wi-Fi use-cases
68 Depending on the transport and other constraints the security scheme needs to be selected by the ap…
75 … a proof-of-possession. For BLE, "just-works" security can be used as a transport level security a…
76 …of-of-possession) if the application does not use the transport level security or if the transport
[all …]
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/btm/
Dbtm_acl.c106 tBT_TRANSPORT transport = (tBT_TRANSPORT)(*((UINT8 *)p_param->p_data2)); in btm_get_acl_db() local
111 && transport == p_acl_db->transport in btm_get_acl_db()
132 tACL_CONN *btm_bda_to_acl (BD_ADDR bda, tBT_TRANSPORT transport) in btm_bda_to_acl() argument
139 acl_params.p_data2 = (void *)&transport; in btm_bda_to_acl()
241 UINT16 hci_handle, UINT8 link_role, tBT_TRANSPORT transport) in btm_acl_created() argument
247 hci_handle, link_role, transport); in btm_acl_created()
249 p = btm_bda_to_acl(bda, transport); in btm_acl_created()
254 p->transport = transport; in btm_acl_created()
280 p->transport = transport; in btm_acl_created()
282 if (transport == BT_TRANSPORT_LE) { in btm_acl_created()
[all …]
Dbtm_sec.c105 static BOOLEAN btm_sec_queue_encrypt_request (BD_ADDR bd_addr, tBT_TRANSPORT transport,
107 static void btm_sec_check_pending_enc_req (tBTM_SEC_DEV_REC *p_dev_rec, tBT_TRANSPORT transport,
360 tBT_TRANSPORT transport) in BTM_GetSecurityFlagsByTransport() argument
365 if (transport == BT_TRANSPORT_BR_EDR) { in BTM_GetSecurityFlagsByTransport()
960 tBTM_STATUS btm_sec_bond_by_transport (BD_ADDR bd_addr, tBT_TRANSPORT transport, in btm_sec_bond_by_transport() argument
969 tACL_CONN *p = btm_bda_to_acl(bd_addr, transport); in btm_sec_bond_by_transport()
973 BTM_TRACE_DEBUG("btm_sec_bond_by_transport: Transport used %d\n" , transport); in btm_sec_bond_by_transport()
991 if ( ((p_dev_rec->hci_handle != BTM_SEC_INVALID_HANDLE) && transport == BT_TRANSPORT_BR_EDR in btm_sec_bond_by_transport()
994 … || ((p_dev_rec->ble_hci_handle != BTM_SEC_INVALID_HANDLE) && transport == BT_TRANSPORT_LE in btm_sec_bond_by_transport()
1028 if (transport == BT_TRANSPORT_LE) { in btm_sec_bond_by_transport()
[all …]
/hal_espressif-3.4.0/components/bt/host/bluedroid/bta/gatt/
Dbta_gattc_utils.c169 tBTA_TRANSPORT transport) in bta_gattc_find_clcb_by_cif() argument
177 p_clcb->transport == transport && in bta_gattc_find_clcb_by_cif()
217 tBTA_TRANSPORT transport) in bta_gattc_clcb_alloc() argument
230 p_clcb->transport = transport; in bta_gattc_clcb_alloc()
264 tBTA_TRANSPORT transport) in bta_gattc_find_alloc_clcb() argument
268 if ((p_clcb = bta_gattc_find_clcb_by_cif(client_if, remote_bda, transport)) == NULL) { in bta_gattc_find_alloc_clcb()
269 p_clcb = bta_gattc_clcb_alloc(client_if, remote_bda, transport); in bta_gattc_find_alloc_clcb()
577 tGATT_TRANSPORT transport; in bta_gattc_clear_notif_registration() local
580 if (GATT_GetConnectionInfor(conn_id, &gatt_if, remote_bda, &transport)) { in bta_gattc_clear_notif_registration()
740 tBTA_TRANSPORT transport, UINT16 mtu) in bta_gattc_send_open_cback() argument
[all …]
Dbta_gatts_act.c46 tGATT_TRANSPORT transport);
585 p_msg->api_start.transport) == GATT_SUCCESS) { in bta_gatts_start_service()
660 tBTA_TRANSPORT transport; in bta_gatts_indicate_handle() local
667 &gatt_if, remote_bda, &transport)) { in bta_gatts_indicate_handle()
685 if (transport == BTA_TRANSPORT_BR_EDR) { in bta_gatts_indicate_handle()
749 p_msg->api_open.is_direct, p_msg->api_open.transport, FALSE)) { in bta_gatts_open()
753 &conn_id, p_msg->api_open.transport)) { in bta_gatts_open()
817 tBTA_GATT_TRANSPORT transport; in bta_gatts_close() local
821 if (GATT_GetConnectionInfor(p_msg->hdr.layer_specific, &gatt_if, remote_bda, &transport)) { in bta_gatts_close()
831 if (transport == BTA_TRANSPORT_BR_EDR) { in bta_gatts_close()
[all …]
/hal_espressif-3.4.0/components/esp_hid/src/
Desp_hidd.c29 esp_err_t esp_hidd_dev_init(const esp_hid_device_config_t *config, esp_hid_transport_t transport, e… in esp_hidd_dev_init() argument
37 switch (transport) { in esp_hidd_dev_init()
57 dev->transport = transport; in esp_hidd_dev_init()
80 return dev->transport; in esp_hidd_dev_transport_get()
/hal_espressif-3.4.0/components/mqtt/host_test/main/
Dtest_mqtt_client.cpp41 int transport; in ClientInitializedFixture() local
50 … esp_transport_tcp_init_IgnoreAndReturn(reinterpret_cast<esp_transport_handle_t>(&transport)); in ClientInitializedFixture()
51 … esp_transport_ssl_init_IgnoreAndReturn(reinterpret_cast<esp_transport_handle_t>(&transport)); in ClientInitializedFixture()
52 esp_transport_ws_init_IgnoreAndReturn(reinterpret_cast<esp_transport_handle_t>(&transport)); in ClientInitializedFixture()
/hal_espressif-3.4.0/components/esp_websocket_client/
Desp_websocket_client.c104 esp_transport_handle_t transport; member
161 esp_transport_close(client->transport); in esp_websocket_client_abort_connection()
348 if (config->transport == WEBSOCKET_TRANSPORT_OVER_TCP) { in esp_websocket_client_init()
391 if (config->transport == WEBSOCKET_TRANSPORT_OVER_SSL) { in esp_websocket_client_init()
542 …rlen = esp_transport_read(client->transport, client->rx_buffer, client->buffer_size, client->confi… in esp_websocket_client_recv()
547 client->payload_len = esp_transport_ws_get_read_payload_len(client->transport); in esp_websocket_client_recv()
548 client->last_opcode = esp_transport_ws_get_read_opcode(client->transport); in esp_websocket_client_recv()
564 …esp_transport_ws_send_raw(client->transport, WS_TRANSPORT_OPCODES_PONG | WS_TRANSPORT_OPCODES_FIN,… in esp_websocket_client_recv()
587 …client->transport = esp_transport_list_get_transport(client->transport_list, client->config->schem… in esp_websocket_client_task()
589 if (client->transport == NULL) { in esp_websocket_client_task()
[all …]
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/smp/
Dsmp_l2c.c41 tBT_TRANSPORT transport);
46 tBT_TRANSPORT transport);
103 tBT_TRANSPORT transport) in smp_connect_callback() argument
111 if (transport == BT_TRANSPORT_BR_EDR || memcmp(bd_addr, dummy_bda, BD_ADDR_LEN) == 0) { in smp_connect_callback()
251 UINT16 reason, tBT_TRANSPORT transport) in smp_br_connect_callback() argument
258 if (transport != BT_TRANSPORT_BR_EDR) { in smp_br_connect_callback()
260 __func__, transport); in smp_br_connect_callback()
/hal_espressif-3.4.0/components/tcp_transport/
Dtransport.c80 esp_transport_list_handle_t transport = calloc(1, sizeof(esp_transport_internal_t)); in esp_transport_list_init() local
81 ESP_TRANSPORT_MEM_CHECK(TAG, transport, return NULL); in esp_transport_list_init()
82 STAILQ_INIT(&transport->list); in esp_transport_list_init()
83 transport->base = esp_transport_init_foundation_transport(); in esp_transport_list_init()
84 ESP_TRANSPORT_MEM_CHECK(TAG, transport->base, in esp_transport_list_init()
85 free(transport); in esp_transport_list_init()
87 return transport; in esp_transport_list_init()
/hal_espressif-3.4.0/components/esp_http_client/
Desp_http_client.c93 esp_transport_handle_t transport; member
949 return esp_transport_get_errno(client->transport); in esp_http_client_get_errno()
982 …int rlen = esp_transport_read(client->transport, res_buffer->data, client->buffer_size_rx, client-… in esp_http_client_get_data()
1042 … rlen = esp_transport_read(client->transport, res_buffer->data, byte_to_read, client->timeout_ms);
1067 …ttp_dispatch_event(client, HTTP_EVENT_ERROR, esp_transport_get_error_handle(client->transport), 0);
1101 …ttp_dispatch_event(client, HTTP_EVENT_ERROR, esp_transport_get_error_handle(client->transport), 0);
1110 …ttp_dispatch_event(client, HTTP_EVENT_ERROR, esp_transport_get_error_handle(client->transport), 0);
1119 …ttp_dispatch_event(client, HTTP_EVENT_ERROR, esp_transport_get_error_handle(client->transport), 0);
1134 if (esp_transport_get_errno(client->transport) == ENOTCONN) {
1137 …ttp_dispatch_event(client, HTTP_EVENT_ERROR, esp_transport_get_error_handle(client->transport), 0);
[all …]
/hal_espressif-3.4.0/examples/bluetooth/esp_hid_host/main/
Desp_hid_host_main.c92 …printf(" %s: " ESP_BD_ADDR_STR ", ", (r->transport == ESP_HID_TRANSPORT_BLE) ? "BLE" : "BT ", ESP… in hid_demo_task()
96 if (r->transport == ESP_HID_TRANSPORT_BLE) { in hid_demo_task()
103 if (r->transport == ESP_HID_TRANSPORT_BT) { in hid_demo_task()
118 esp_hidh_dev_open(cr->bda, cr->transport, cr->ble.addr_type); in hid_demo_task()
/hal_espressif-3.4.0/examples/provisioning/wifi_prov_mgr/main/
Dapp_main.c143 static void wifi_prov_print_qr(const char *name, const char *pop, const char *transport) in wifi_prov_print_qr() argument
145 if (!name || !transport) { in wifi_prov_print_qr()
153 PROV_QR_VERSION, name, pop, transport); in wifi_prov_print_qr()
157 PROV_QR_VERSION, name, transport); in wifi_prov_print_qr()

123456