Skip to content

Commit

Permalink
Nameoftherose patch for Issue esp8266#2435 (esp8266#4256)
Browse files Browse the repository at this point in the history
* WiFiTelnetToSerial Example - Minor Issues esp8266#2435

* WiFiTelnetToSerial Example - Minor Issues esp8266#2435

Patch to rectify issue esp8266#2435
  • Loading branch information
nameoftherose authored and devyte committed Jan 29, 2018
1 parent 8da1d78 commit 84228b1
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,15 @@ void loop() {
if(serverClients[i]) serverClients[i].stop();
serverClients[i] = server.available();
Serial1.print("New client: "); Serial1.print(i);
continue;
break;
}
}
//no free/disconnected spot so reject
WiFiClient serverClient = server.available();
serverClient.stop();
if ( i == MAX_SRV_CLIENTS) {
WiFiClient serverClient = server.available();
serverClient.stop();
Serial1.println("Connection rejected ");
}
}
//check clients for data
for(i = 0; i < MAX_SRV_CLIENTS; i++){
Expand Down

0 comments on commit 84228b1

Please sign in to comment.