I’ve been troubleshooting this for weeks and I keep coming back to the problem of the WiFi server disconnecting, causing the Arduino sketch to hang up. I’m using code adapted from the WiFiChatServer example. The whole thing will run fine for hours to days and then just stop. I started putting in Serial print statements checking the WiFi connection and the server status with each run of the loop. The WiFi remains connected and the server.status() call will return a 1 (Ok) for a period (few hours, up to 5 days); and then for reasons I can’t figure out, the server.status() call will return 0 and the whole program will stop soon afterward.
I tried instituting a server.begin() call after server.status() returns a 0, but that doesn’t get things going again.
Arduino WiFi Shield firmware version: 1.1.0
Arduino IDE version: 1.0.5 r2
Arduino Uno Rev3
I’ve googled around and checked forums and read that this may be a bug, but the conversation didn’t go anywhere or went beyond my experience level.
I appreciate your help and input.
aquaculture_wifi_debug2.ino (13.6 KB)