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

Is 'WL_IDLE_STATUS' correct if 'STA_GOT_IP' ? #1086

Closed
mijnmodelbaan opened this issue Feb 6, 2018 · 4 comments
Closed

Is 'WL_IDLE_STATUS' correct if 'STA_GOT_IP' ? #1086

mijnmodelbaan opened this issue Feb 6, 2018 · 4 comments

Comments

@mijnmodelbaan
Copy link

if(WiFiSTAClass::status() == WL_IDLE_STATUS) {

I'm trying to create a static IP address on an ESP32 WROOM, but IMHO the ESP is not IDLE anymore if it has gotten an IP address. Please correct me if I'm wrong about this but I've been searching for some kind of time table to find out when exactly the IDLE status is, but couldn't find it. Creating a dynamic IP causes no problem (working correctly) but creating a static IP gives a problem in WiFiGeneric.cpp, line 319.

@mistergreen
Copy link

I started a Static ip issue yesterday. status() returns a 6 - disconnect with a static ip config().

@baggior
Copy link
Contributor

baggior commented Feb 11, 2018

I can confirm this issue
and the solution is on #1081

please fix

@baggior
Copy link
Contributor

baggior commented Feb 20, 2018

created the PR #1129 to fix this

@copercini
Copy link
Contributor

Closed due it's fixed here: #1129

Thanks @baggior !

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

4 participants