int attempts = 0; while (WiFi.status() != WL_CONNECTED) { if (++attempts < 300) { Serial.print("."); delay(50); } else break; } if (WiFi.status() == WL_CONNECTED) { long tm = millis() - st; Serial.print(F("\nConnected to AP in ")); ...
My Arduino kit contains a Arduino UNO clone. This was bigger than I wanted so I settled on a cloned Arduino Nano from eBay which was about $10. This had the digital inputs I wanted, more than enough memory to hold the simple sketch I’d write, could be run from a 12V DC plug pac...