-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
When wifi shield goes out of network range for a period of time, the tcpServer dies and does not respawn. [imported] #1086
Comments
I am experiencing the same problem, along with others in the wifi server library. I use these functions to troubleshoot, adding this first code to loop(). I press 's' to see the data from the wifi shield. If it stays disconnected for more than just a few seconds, the shield status returns failed, then locks up.
|
I have also the same problem. Arduino UNO R3 I'm using the example SimpleWifiWebServer. The sample is working great, but if I turn off the wifi and turn it on again, then I can add a code to reconnect to wifi. It works, but the code server.status is 0 and not working. The webserver is dead. The only workaround is to hard reset arduino. |
This issue was moved to arduino-libraries/WiFi#19 |
This is Issue 1086 moved from a Google Code project.
Added by 2012-10-29T00:03:28.000Z by k...@vmfarms.com.
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Defect, Priority-Medium
Original description
What steps will reproduce the problem?
You should expect that when the wifi server is back in range, it will continue to serve new/old established connections.
I did some very superficial debugging and if you output server.status() you'll notice that at some point it returns 0, instead of 1. This is when you know it's dead. I've tried to add code that runs another server.begin(), to no avail. I've even added a new function to restart the server. Again, to no avail. I've yet to dig deeper.
I'm using the Arduino UNO + Arduino Wifi Shield, using 1.0.1 of the IDE in OS X Mountain Lion.
This function does not restart the server as I would expect when it dies, i've yet to debug why:
void WiFiServer::restart()
{
uint8_t _sock = WiFiClass::getSocket();
ServerDrv::startServer(_port, _sock);
}
The text was updated successfully, but these errors were encountered: