Search found 1 match

by longfei-jia
Mon Jul 15, 2024 7:00 am
Forum: ESP-IDF
Topic: why does my program report a timeout when wifi is connected, I can get the correct ssid and password through log checkin
Replies: 0
Views: 546

why does my program report a timeout when wifi is connected, I can get the correct ssid and password through log checkin

static void wifi_scan(void) { wifi_init_config_t wifi_cfg = WIFI_INIT_CONFIG_DEFAULT(); ESP_ERROR_CHECK(esp_wifi_init(&wifi_cfg)); uint16_t number = DEFAULT_SCAN_LIST_SIZE; wifi_ap_record_t ap_info[DEFAULT_SCAN_LIST_SIZE]; uint16_t ap_count = 0; memset(ap_info, 0, sizeof(ap_info)); ESP_ERROR_CHECK(...