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

Connectivity issues to push data to MQTT #10

Closed
shifaz opened this issue Feb 7, 2018 · 4 comments
Closed

Connectivity issues to push data to MQTT #10

shifaz opened this issue Feb 7, 2018 · 4 comments

Comments

@shifaz
Copy link

shifaz commented Feb 7, 2018

I'm having an issue where the sniffer cannot connect to AP on the second time, It goes to an infinite loop.

I couldn't find any reason for this to happen. I have flashed this onto an NodeMCU v1.0 board.

@ghost
Copy link

ghost commented Feb 10, 2018

same problem here with an wemos d1 mini

@shifaz
Copy link
Author

shifaz commented Feb 11, 2018

Hello,

This issue is happening with ESP8266 SDK 2.3.0. The code works on older SDK.

I was able to resolve the issues by following the instruction from this thread

Basically, you need to modify the code as below.

WiFi.persistent(false);
WiFi.mode(WIFI_OFF);   // this is a temporary line, to be removed after SDK update to 1.5.4
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);

@ghost
Copy link

ghost commented Feb 11, 2018

thanks, good finding. works now with SDK 2.4.0.

@majodi
Copy link

majodi commented Apr 7, 2018

Great! Everything works now, thank you. (I spent many hours trying to fix this...)

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