Skip to content

problems with WiFi.setPhyMode #1354

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
onkelfunny opened this issue Jan 2, 2016 · 4 comments
Closed

problems with WiFi.setPhyMode #1354

onkelfunny opened this issue Jan 2, 2016 · 4 comments

Comments

@onkelfunny
Copy link

onkelfunny commented Jan 2, 2016

Sketch 1:
void setup() {
    WiFi.disconnect(true);
    delay(2000);
    WiFi.begin("ABCD12345678", "12345678");
}
Sketch 2:
void setup() {
    WiFi.disconnect(true);
    delay(2000);
    WiFi.setPhyMode(WIFI_PHY_MODE_11B);
    WiFi.begin("ABCD12345678", "12345678");
}

The esp runs great with Sketch 1. After Flashing Sketch 2 i can't connect to the Router.
Because Sketch 2 not working i tried Sketch 1 and now this is not working.

After a complete Flash erase, Sketch 1 works without problems.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Links2004
Copy link
Collaborator

may the SDK stores the WIFI_PHY_MODE_11B setting,
does your router support WiFi mode B?

@onkelfunny
Copy link
Author

the router don't support mode b.

i have tried to set mode g and mode n but without luck.

I think the idk stores the information... the question ist how i can reset the mode without full flash reset?

@Links2004
Copy link
Collaborator

the sdk docs not write over it, you can try set it to 0 or
ESP.eraseConfig(); this will delete all SDK config

@devyte
Copy link
Collaborator

devyte commented Oct 19, 2017

I can't reproduce this with latest git and my router. Closing.

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

3 participants