-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
WifiClient crashes - _yield and millis() #5237
Comments
Can you please enable all debug messages, serial output |
|
Another 2 crashes:
this is wyslijPomiar() at C:\Users\Mateusz\Dropbox\esp8266\pms/network.ino line 159:
wyslijPomiar() at C:\Users\Mateusz\Dropbox\esp8266\pms/network.ino line 133: |
Are you using the wifi events? E.g. is wyslijPomiar() called from a callback? |
@devyte No, wyslijPomiar() is called from main loop, in ~120 seconds interval. I'm using millis and comparing it, not using delays. |
What I can say with your logs is that the STA interface is disconnected just before the crash. |
Bug reproduced. |
@mateusz-szafraniec I think this will be fixed by #5254. |
Basic Infos
Platform
Settings in IDE
Problem Description
My program randomly crashes while trying to post data via WifiClient.
Sometimes at client.connect(), sometimes at client.println(), but always latest stack trace points to millis and _yield
Sometimes program can run hours without crashes, sometimes few minutes.
Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: