-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
void setup() {
Serial.begin(115200);
Serial.print("Connecting t ");
Serial.println(ssid);
// WiFi.mode(WIFI_STA);
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);
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels