Skip to content
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

Refresh AP and STA lists #7

Open
an-al-bumcover opened this issue Nov 29, 2017 · 0 comments
Open

Refresh AP and STA lists #7

an-al-bumcover opened this issue Nov 29, 2017 · 0 comments

Comments

@an-al-bumcover
Copy link

an-al-bumcover commented Nov 29, 2017

Thank you for making your code available. I think there is a problem wherein an AP can be added while the loop is running or a MAC/SSID could be changed or spoofed and program would not detect the new devices. I admit I don't fully understand the code but as tested, I plugged in a new router and it was successful at evading the attack.

I considered placing all of the void loop() inside a nonblocking loop but have not tested it. My crappy coding skills led me to think that I could just apply a nonblocking timer to have it restart every minute or so.
Something like this as the first step in the loop():

  unsigned long currentMillis = millis();

  if (currentMillis - previousMillis >= interval) {
    //Do something here
    ESP.restart();
    // save the last time you reset the ESP
    //I'm thinking this is superfluous b/c it will be reset every time it starts but whatever.
    previousMillis = currentMillis;
  }

Thoughts?

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

1 participant