1
0
Fork 0
mirror of https://github.com/kou029w/k2ping.git synced 2025-01-18 16:07:59 +00:00

Wi-Fiに接続できる

This commit is contained in:
Nebel 2017-04-15 11:56:44 +09:00
parent c46bf16985
commit 7e41937968

View file

@ -4,9 +4,22 @@
static const uint8_t D[] = {3, 1, 16, 5, 4, 14, 12, 13, 0, 2, 15};
void setup() {
;
Serial.begin(9600);
Serial.println();
WiFi.begin("network-name", "pass-to-network");
Serial.print("Connecting");
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println();
Serial.print("Connected, IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {
;
}
}