- Sat Oct 21, 2017 4:00 pm
#71056
I am doing a project of a vending machine system on which the main task is obviously to count the coins, but whenever the wireless connection is lost, the system keep blocked in a closed loop. I'm using the standard template present at the Webserver sketch:
Code: Select all while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print (".");
}
I've thinking of using I/O interrupt in order to provide a quick call to the counting routine, or even exit the loop and return again, skipping a new attempt to reconnect if it is done. I mean: To instantiate the
WiFi.status() just once, but seems like wont work.
Does anyone have faced to a similar issue, or have some insight on how to solve that ?
Last edited by andre_teprom on Sun Oct 22, 2017 10:48 am, edited 1 time in total.
"part of the world that you live in, you are the part that you're giving" - Renaissance