Skip to content

scanNetworks with async = true #354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bmitov opened this issue May 5, 2017 · 1 comment
Closed

scanNetworks with async = true #354

bmitov opened this issue May 5, 2017 · 1 comment

Comments

@bmitov
Copy link

bmitov commented May 5, 2017

Is the scanNetworks( true ) implemented?
It does not seem like the static void _scanDone(); is used anywhere in the code, and when I call 👍
scanNetworks( true );

int n;
for(;;)
{
  Serial.println("scanning...");
  n = WiFi.scanComplete();
  if( n != WIFI_SCAN_RUNNING )
    break;

  Serial.println( n );
  delay( 1000 );      
}

the loop runs forever...
How to use scanNetworks asynchronous? I want to perform other tasks while scanning in the main loop

@me-no-dev
Copy link
Member

It's called here: https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/src/WiFiGeneric.cpp#L177
Try to raise the debug level for Arduino and see what messages you get in Serial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants