Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i hope this helps someone(: #2

Open
oL0ck opened this issue Jun 11, 2018 · 0 comments
Open

i hope this helps someone(: #2

oL0ck opened this issue Jun 11, 2018 · 0 comments

Comments

@oL0ck
Copy link

oL0ck commented Jun 11, 2018

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);

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant