mirror of
https://github.com/kou029w/k2ping.git
synced 2025-01-18 16:07:59 +00:00
Wi-Fiに接続できる
This commit is contained in:
parent
c46bf16985
commit
7e41937968
1 changed files with 15 additions and 2 deletions
|
@ -4,7 +4,20 @@
|
|||
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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue