// the loop function runs over and over again until power down or reset
void loop() {
Serial.print("For testing wifi we can always just ping the gateway");
if (ping_start(WiFi.gatewayIP(), 4, 0, 0, 5))
Serial.println("OK");
else
Serial.println("FAILED");
delay(10000);
void setup() {
WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.print("We got IP: "); Serial.println(WiFi.localIP()); Serial.print("And gateway: "); Serial.println(WiFi.gatewayIP()); }
// the loop function runs over and over again until power down or reset void loop() { Serial.print("For testing wifi we can always just ping the gateway"); if (ping_start(WiFi.gatewayIP(), 4, 0, 0, 5)) Serial.println("OK"); else Serial.println("FAILED"); delay(10000);
}