File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,8 @@ int WiFiClient::connect(IPAddress ip, uint16_t port) {
4444
4545 if (!connected ())
4646 {
47- Serial.println (" timeout on client connection" );
4847 return 0 ;
4948 }
50- else
51- Serial.println (" CONNECTED" );
5249 }else {
5350 Serial.println (" No Socket available" );
5451 return 0 ;
@@ -134,7 +131,6 @@ void WiFiClient::stop() {
134131 // wait a second for the connection to close
135132 while (status () != CLOSED && millis () - start < 1000 )
136133 delay (1 );
137- Serial.print (" Stop client! Status:" );Serial.println (status (),10 );
138134 _sock = 255 ;
139135}
140136
@@ -144,12 +140,7 @@ uint8_t WiFiClient::connected() {
144140 return 0 ;
145141 } else {
146142 uint8_t s = status ();
147- /*
148- if (s== SYN_SENT) Serial.print("*");
149- else{
150- Serial.print("Status:"); Serial.println(s,10);
151- }
152- */
143+
153144 return !(s == LISTEN || s == CLOSED || s == FIN_WAIT_1 ||
154145 s == FIN_WAIT_2 || s == TIME_WAIT ||
155146 s == SYN_SENT || s== SYN_RCVD ||
You can’t perform that action at this time.
0 commit comments