/hal_espressif-3.6.0/tools/ci/python_packages/idf_http_server_test/ |
D | client.py | 57 resp_data = resp.read().decode() 65 test_val('Response mismatch', 'Hello World!', resp_data) 74 verbose_print(verbosity, 'Response Data : ' + resp_data) 88 resp_data = resp.read().decode() 91 verbose_print(verbosity, resp_data) 96 return test_val('Response mismatch', msg, resp_data) 116 resp_data = resp.read().decode() 125 verbose_print(verbosity, 'Response on GET /hello : ' + resp_data) 126 if not test_val('Response mismatch', '/hello URI is not available', resp_data): 134 resp_data = resp.read().decode() [all …]
|
/hal_espressif-3.6.0/examples/provisioning/legacy/ble_prov/main/ |
D | app_prov_handlers.c | 49 static esp_err_t get_status_handler(wifi_prov_config_get_data_t *resp_data, wifi_prov_ctx_t **ctx) in get_status_handler() argument 52 memset(resp_data, 0, sizeof(wifi_prov_config_get_data_t)); in get_status_handler() 54 if (app_prov_get_wifi_state(&resp_data->wifi_state) != ESP_OK) { in get_status_handler() 59 if (resp_data->wifi_state == WIFI_PROV_STA_CONNECTED) { in get_status_handler() 65 … esp_ip4addr_ntoa(&ip_info.ip, resp_data->conn_info.ip_addr, sizeof(resp_data->conn_info.ip_addr)); in get_status_handler() 70 memcpy(resp_data->conn_info.bssid, (char *)ap_info.bssid, sizeof(ap_info.bssid)); in get_status_handler() 71 memcpy(resp_data->conn_info.ssid, (char *)ap_info.ssid, sizeof(ap_info.ssid)); in get_status_handler() 72 resp_data->conn_info.channel = ap_info.primary; in get_status_handler() 73 resp_data->conn_info.auth_mode = ap_info.authmode; in get_status_handler() 74 } else if (resp_data->wifi_state == WIFI_PROV_STA_DISCONNECTED) { in get_status_handler() [all …]
|
/hal_espressif-3.6.0/examples/provisioning/legacy/softap_prov/main/ |
D | app_prov_handlers.c | 49 static esp_err_t get_status_handler(wifi_prov_config_get_data_t *resp_data, wifi_prov_ctx_t **ctx) in get_status_handler() argument 52 memset(resp_data, 0, sizeof(wifi_prov_config_get_data_t)); in get_status_handler() 54 if (app_prov_get_wifi_state(&resp_data->wifi_state) != ESP_OK) { in get_status_handler() 59 if (resp_data->wifi_state == WIFI_PROV_STA_CONNECTED) { in get_status_handler() 65 … esp_ip4addr_ntoa(&ip_info.ip, resp_data->conn_info.ip_addr, sizeof(resp_data->conn_info.ip_addr)); in get_status_handler() 70 memcpy(resp_data->conn_info.bssid, (char *)ap_info.bssid, sizeof(ap_info.bssid)); in get_status_handler() 71 memcpy(resp_data->conn_info.ssid, (char *)ap_info.ssid, sizeof(ap_info.ssid)); in get_status_handler() 72 resp_data->conn_info.channel = ap_info.primary; in get_status_handler() 73 resp_data->conn_info.auth_mode = ap_info.authmode; in get_status_handler() 74 } else if (resp_data->wifi_state == WIFI_PROV_STA_DISCONNECTED) { in get_status_handler() [all …]
|
/hal_espressif-3.6.0/examples/provisioning/legacy/console_prov/main/ |
D | app_prov_handlers.c | 49 static esp_err_t get_status_handler(wifi_prov_config_get_data_t *resp_data, wifi_prov_ctx_t **ctx) in get_status_handler() argument 52 memset(resp_data, 0, sizeof(wifi_prov_config_get_data_t)); in get_status_handler() 54 if (app_prov_get_wifi_state(&resp_data->wifi_state) != ESP_OK) { in get_status_handler() 59 if (resp_data->wifi_state == WIFI_PROV_STA_CONNECTED) { in get_status_handler() 65 … esp_ip4addr_ntoa(&ip_info.ip, resp_data->conn_info.ip_addr, sizeof(resp_data->conn_info.ip_addr)); in get_status_handler() 70 memcpy(resp_data->conn_info.bssid, (char *)ap_info.bssid, sizeof(ap_info.bssid)); in get_status_handler() 71 memcpy(resp_data->conn_info.ssid, (char *)ap_info.ssid, sizeof(ap_info.ssid)); in get_status_handler() 72 resp_data->conn_info.channel = ap_info.primary; in get_status_handler() 73 resp_data->conn_info.auth_mode = ap_info.authmode; in get_status_handler() 74 } else if (resp_data->wifi_state == WIFI_PROV_STA_DISCONNECTED) { in get_status_handler() [all …]
|
/hal_espressif-3.6.0/examples/provisioning/legacy/custom_config/main/ |
D | app_prov_handlers.c | 61 static esp_err_t get_status_handler(wifi_prov_config_get_data_t *resp_data, wifi_prov_ctx_t **ctx) in get_status_handler() argument 64 memset(resp_data, 0, sizeof(wifi_prov_config_get_data_t)); in get_status_handler() 66 if (app_prov_get_wifi_state(&resp_data->wifi_state) != ESP_OK) { in get_status_handler() 71 if (resp_data->wifi_state == WIFI_PROV_STA_CONNECTED) { in get_status_handler() 77 … esp_ip4addr_ntoa(&ip_info.ip, resp_data->conn_info.ip_addr, sizeof(resp_data->conn_info.ip_addr)); in get_status_handler() 82 memcpy(resp_data->conn_info.bssid, (char *)ap_info.bssid, sizeof(ap_info.bssid)); in get_status_handler() 83 memcpy(resp_data->conn_info.ssid, (char *)ap_info.ssid, sizeof(ap_info.ssid)); in get_status_handler() 84 resp_data->conn_info.channel = ap_info.primary; in get_status_handler() 85 resp_data->conn_info.auth_mode = ap_info.authmode; in get_status_handler() 86 } else if (resp_data->wifi_state == WIFI_PROV_STA_DISCONNECTED) { in get_status_handler() [all …]
|
/hal_espressif-3.6.0/components/wifi_provisioning/src/ |
D | handlers.c | 53 static esp_err_t get_status_handler(wifi_prov_config_get_data_t *resp_data, wifi_prov_ctx_t **ctx) in get_status_handler() argument 56 memset(resp_data, 0, sizeof(wifi_prov_config_get_data_t)); in get_status_handler() 58 if (wifi_prov_mgr_get_wifi_state(&resp_data->wifi_state) != ESP_OK) { in get_status_handler() 63 if (resp_data->wifi_state == WIFI_PROV_STA_CONNECTED) { in get_status_handler() 69 … esp_ip4addr_ntoa(&ip_info.ip, resp_data->conn_info.ip_addr, sizeof(resp_data->conn_info.ip_addr)); in get_status_handler() 75 memcpy(resp_data->conn_info.bssid, (char *)ap_info.bssid, sizeof(ap_info.bssid)); in get_status_handler() 76 memcpy(resp_data->conn_info.ssid, (char *)ap_info.ssid, sizeof(ap_info.ssid)); in get_status_handler() 77 resp_data->conn_info.channel = ap_info.primary; in get_status_handler() 78 resp_data->conn_info.auth_mode = ap_info.authmode; in get_status_handler() 82 } else if (resp_data->wifi_state == WIFI_PROV_STA_DISCONNECTED) { in get_status_handler() [all …]
|
D | wifi_config.c | 74 wifi_prov_config_get_data_t resp_data; in cmd_get_status_handler() local 75 if (h->get_status_handler(&resp_data, &h->ctx) == ESP_OK) { in cmd_get_status_handler() 76 if (resp_data.wifi_state == WIFI_PROV_STA_CONNECTING) { in cmd_get_status_handler() 79 } else if (resp_data.wifi_state == WIFI_PROV_STA_CONNECTED) { in cmd_get_status_handler() 92 connected->ip4_addr = strdup(resp_data.conn_info.ip_addr); in cmd_get_status_handler() 98 connected->bssid.len = sizeof(resp_data.conn_info.bssid); in cmd_get_status_handler() 99 connected->bssid.data = (uint8_t *) strndup(resp_data.conn_info.bssid, in cmd_get_status_handler() 100 sizeof(resp_data.conn_info.bssid)); in cmd_get_status_handler() 107 connected->ssid.len = strlen(resp_data.conn_info.ssid); in cmd_get_status_handler() 108 connected->ssid.data = (uint8_t *) strdup(resp_data.conn_info.ssid); in cmd_get_status_handler() [all …]
|
/hal_espressif-3.6.0/examples/protocols/http_server/captive_portal/ |
D | example_test.py | 71 resp_data = resp.read().decode() 74 if search_str not in resp_data: 75 … RuntimeError('Failed to match {} with data from captive portal: {}'.format(search_str, resp_data))
|
/hal_espressif-3.6.0/components/protocomm/src/transports/ |
D | protocomm_nimble.c | 74 static struct ble_hs_adv_fields adv_data, resp_data; variable 184 rc = ble_gap_adv_rsp_set_fields((const struct ble_hs_adv_fields *) &resp_data); in simple_ble_advertise() 514 resp_data.name = (void *) ble_svc_gap_device_name(); in simple_ble_start() 515 if (resp_data.name != NULL) { in simple_ble_start() 516 resp_data.name_len = strlen(ble_svc_gap_device_name()); in simple_ble_start() 517 resp_data.name_is_complete = 1; in simple_ble_start() 522 resp_data.mfg_data = protocomm_ble_mfg_data; in simple_ble_start() 523 resp_data.mfg_data_len = protocomm_ble_mfg_data_len; in simple_ble_start()
|
/hal_espressif-3.6.0/components/wifi_provisioning/include/wifi_provisioning/ |
D | wifi_config.h | 105 esp_err_t (*get_status_handler)(wifi_prov_config_get_data_t *resp_data,
|