mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-01 23:29:28 +01:00
Delete console messages
This commit is contained in:
parent
3ad4f98b22
commit
5adf3e5c89
@ -44,11 +44,8 @@ int WiFiClient::connect(IPAddress ip, uint16_t port) {
|
|||||||
|
|
||||||
if (!connected())
|
if (!connected())
|
||||||
{
|
{
|
||||||
Serial.println("timeout on client connection");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
Serial.println("CONNECTED");
|
|
||||||
}else{
|
}else{
|
||||||
Serial.println("No Socket available");
|
Serial.println("No Socket available");
|
||||||
return 0;
|
return 0;
|
||||||
@ -134,7 +131,6 @@ void WiFiClient::stop() {
|
|||||||
// wait a second for the connection to close
|
// wait a second for the connection to close
|
||||||
while (status() != CLOSED && millis() - start < 1000)
|
while (status() != CLOSED && millis() - start < 1000)
|
||||||
delay(1);
|
delay(1);
|
||||||
Serial.print("Stop client! Status:");Serial.println(status(),10);
|
|
||||||
_sock = 255;
|
_sock = 255;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,12 +140,7 @@ uint8_t WiFiClient::connected() {
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
uint8_t s = status();
|
uint8_t s = status();
|
||||||
/*
|
|
||||||
if (s== SYN_SENT) Serial.print("*");
|
|
||||||
else{
|
|
||||||
Serial.print("Status:"); Serial.println(s,10);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
return !(s == LISTEN || s == CLOSED || s == FIN_WAIT_1 ||
|
return !(s == LISTEN || s == CLOSED || s == FIN_WAIT_1 ||
|
||||||
s == FIN_WAIT_2 || s == TIME_WAIT ||
|
s == FIN_WAIT_2 || s == TIME_WAIT ||
|
||||||
s == SYN_SENT || s== SYN_RCVD ||
|
s == SYN_SENT || s== SYN_RCVD ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user