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

Feature Request : Add WiFi PEAP Auth #37

Open
hallard opened this issue Jun 11, 2023 · 0 comments
Open

Feature Request : Add WiFi PEAP Auth #37

hallard opened this issue Jun 11, 2023 · 0 comments

Comments

@hallard
Copy link

hallard commented Jun 11, 2023

I'm not expert of IdF but better with ESP32 Arduino package, would it be complicated to add option to have PEAP WiFi option?

We're in a company building where wifi is not open but works with PEAP, on Arduino ESP32 we just do something like that and it's working fine, not sure how to do with IDF.

  // we got PEAP Auth config?
  if (EAPname!="" && EAPuser!="" && EAPpass!="" ) {
    WiFi.begin(EAPname, WPA2_AUTH_PEAP, EAPuser, EAPuser, EAPpass);
    // wait 30s to connect
    if (!checkAPConnection(30)) {
      Serial.print("Failed to connect using PEAP Auth, fallback to classic");
    }
  }

  // in case PEAP failed or not configured, just use classic WiFi SSID/Pass
  if (WiFi.status() != WL_CONNECTED) {
    WiFi.begin(APname, APpass);
    connected = checkAPConnection(45);
  }

Thanks

@hallard hallard changed the title Feature Request : Add WiFi PEAP Feature Request : Add WiFi PEAP Auth Jun 11, 2023
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