Is it possible to start scanning of available Wi-Fi network without connection to AP in STA mode? I always got next error:
Code: Select all
W (3298) wifi: Now is connecting, user scan invalid now!
Code: Select all
W (3298) wifi: Now is connecting, user scan invalid now!
It's already on your computer....Dmytro_Medvid wrote:May you send your code of Wi-Fi initializing and sanning process?
Code: Select all
case SYSTEM_EVENT_SCAN_DONE:
wifiScanCallback(event->event_info.scan_done.number);
break;
Code: Select all
uint16_t apCount;
esp_wifi_scan_get_ap_num(&apCount);
//printf("Number of access points found: %d:%d\n",apCount,num_ap);
if (apCount == 0) {
xTaskNotifyGive(l_scanning_task);
return;
}
wifi_ap_record_t *list = (wifi_ap_record_t *)malloc(sizeof(wifi_ap_record_t) * apCount);
ESP_ERROR_CHECK(esp_wifi_scan_get_ap_records(&apCount, list));
Users browsing this forum: No registered users and 111 guests