mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-09 22:24:14 +03:00
typo
This commit is contained in:
@@ -37,8 +37,8 @@ void loop() {
|
|||||||
const uint16_t port = 80;
|
const uint16_t port = 80;
|
||||||
const char * host = "192.168.1.1"; // ip or dns
|
const char * host = "192.168.1.1"; // ip or dns
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Serial.print("connecting to ");
|
Serial.print("connecting to ");
|
||||||
Serial.println(host);
|
Serial.println(host);
|
||||||
|
|
||||||
@@ -47,8 +47,8 @@ void loop() {
|
|||||||
|
|
||||||
if (!client.connect(host, port)) {
|
if (!client.connect(host, port)) {
|
||||||
Serial.println("connection failed");
|
Serial.println("connection failed");
|
||||||
Serial.println("wait 5 sec...");
|
Serial.println("wait 5 sec...");
|
||||||
delay(5000);
|
delay(5000);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,8 +61,8 @@ void loop() {
|
|||||||
|
|
||||||
Serial.println("closing connection");
|
Serial.println("closing connection");
|
||||||
client.stop();
|
client.stop();
|
||||||
|
|
||||||
Serial.println("wait 5 sec...");
|
Serial.println("wait 5 sec...");
|
||||||
delay(5000);
|
delay(5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user