WiFiTelnetToSerial Example - Minor Issues #2435
Labels
component: examples
level: easy
type: bug
waiting for feedback
Waiting on additional info. If it's not received, the issue may be closed.
Reference is made to WiFiTelnetToSerial.ino
The loop in lines 55-63 continues even if an available client slot has been found. As a result all empty spots are allocated and spurious New Client messages are produced. I propose that the
continue
statement in line 61 is replaced by abreak
.The statements in lines 65-66 are executed always even if a client spot was previously allocated. As a result, a race condition may arise and an incoming connection rejected. I propose that these statements are executed only when
i==MAX_SRV_CLIENTS
ie said lines 65-66 are replaced with:The text was updated successfully, but these errors were encountered: