WiFi.scanNetworks(); without disconnecting active AP connection

esp1979
Posts: 21
Joined: Sun Dec 12, 2021 8:55 pm

WiFi.scanNetworks(); without disconnecting active AP connection

Postby esp1979 » Fri Jan 21, 2022 8:25 pm

Hi,

it seems, that WiFi.scanNetworks(); disconnects the active AP connection.

I want that the user connects to AP-mode and then calls 192.168.4.1 to enter the server page.
Then the user should be able to press a button "scan for Wifi networks" and then should get a list of available WiFi-networks.

But after WiFi.scanNetworks(); is started, the connection to the AP / Serverpage gets lost.

Is there a way to keep the connection alive while WiFi-Scan is performed?
Maybe with FreeRTOS task?

Best wishes
Daniel

Hichiam
Posts: 1
Joined: Sun Jul 03, 2022 5:07 pm

Re: WiFi.scanNetworks(); without disconnecting active AP connection

Postby Hichiam » Thu Jul 07, 2022 7:21 pm

Hello,
Is there a solution to the problem?

I only have the problem with ESP32 c3 mini 1
other ESP32 work.
It also works with the ESP8266

I found it when I flashed Tasmota. Tasmota creat a AP and use wifi.scanNetworks() after connect
Once wifi.scanNetworks() it's running, every Windows PC flies out of the AP.
Android devices stay in the AP.

The problem seems to be only with Windows devices.

If I remove wifi.scannetworks() from Tasmota, the AP works normally.

On the ESP8266 or ESP32 wroom, the Windows PC does not fly out of the AP when wifi.scannetworks is running.

lg
Hichi

Who is online

Users browsing this forum: ESP_Sprite and 59 guests