From 7e4193796813cd2e3e0755de3593b4d13e7e09d7 Mon Sep 17 00:00:00 2001 From: kou029w Date: Sat, 15 Apr 2017 11:56:44 +0900 Subject: [PATCH] =?UTF-8?q?Wi-Fi=E3=81=AB=E6=8E=A5=E7=B6=9A=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/k2ping.ino | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/k2ping.ino b/src/k2ping.ino index 0ac84df..df2f9b7 100644 --- a/src/k2ping.ino +++ b/src/k2ping.ino @@ -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() { ; -} +} \ No newline at end of file