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

ESP32 strange WiFi behavior at standard example codes: #2345

Closed
nae9 opened this issue Jan 18, 2019 · 8 comments
Closed

ESP32 strange WiFi behavior at standard example codes: #2345

nae9 opened this issue Jan 18, 2019 · 8 comments
Labels
Status: Stale Issue is stale stage (outdated/stuck)

Comments

@nae9
Copy link

nae9 commented Jan 18, 2019

Release example codes for arduino esp32 have some problem...
If i compile for example SimpleWiFiServer.ino and try to connect by web-browser then serial terminal shows that after right connection led wrong client with free rx buffer and it led to close this client by timeout (freezes main loop). (client.stop() not work properly)

It seemed that wifi go in to sleep mode after beginning and disable sleep mode after Wifi.begin() fix this problem. And all examples work fine with hi speed http response, as at very old libraries (before rx buffer introduce into wifi lib).

void setup()
{
...
WiFi.begin(ssid, password);
WiFi.setSleep(false);// this code solves my problem
...
}

But may be some body pull this parameter as default into release libs? Or change ALL example codes in such manner?
Or may be there is some bugs in libs that dont allow wifi work correct in sleepmode at fast http querry?

@stale
Copy link

stale bot commented Aug 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Aug 1, 2019
@stale
Copy link

stale bot commented Aug 15, 2019

This stale issue has been automatically closed. Thank you for your contributions.

@stale stale bot closed this as completed Aug 15, 2019
@mcuadros
Copy link

@nae9 is your router a Linksys EA?

@nae9
Copy link
Author

nae9 commented Aug 30, 2019

@nae9 is your router a Linksys EA?

EA4500 , openwrt git-18.228.31946-f64b152

@mcuadros
Copy link

me-no-dev/ESPAsyncWebServer#437

I have a EA6300 with stock firmware, and I am having the same issues, the problem is that for me setSleep() doesn't solve my problems for output connections.

The only way to fix the problem in my case is doing a ping to the IP until wakeups

@nae9
Copy link
Author

nae9 commented Aug 30, 2019

Another router (Not linksys EA) can help this issue?

@mcuadros
Copy link

Here, I only have this router here, but I will try with another routers. Based on the issue referred and the fact that you have a very similar issue and the same brand and series of mine, I can imagine that the problem is only related with the routers.

@mcuadros
Copy link

I can confirm that in my case, with outer routers works flawless, using same sever and board

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Issue is stale stage (outdated/stuck)
Projects
None yet
Development

No branches or pull requests

2 participants