WiFi.scanNetworks(); without disconnecting active AP connection

esp1979
Posts: 20
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

Who is online

Users browsing this forum: No registered users and 19 guests