Increased number of sockets in WiFiServer to maxConnection+1
This should account for the extra connection opened when all slots are already filled.
This commit is contained in:
parent
7e03998865
commit
7400383b0a
|
|
@ -135,7 +135,7 @@ void Span::poll() {
|
|||
statusLED.start(LED_WIFI_NEEDED);
|
||||
} else {
|
||||
homeSpan.statusLED.start(LED_WIFI_CONNECTING);
|
||||
hapServer=new WiFiServer(tcpPortNum,maxConnections);
|
||||
hapServer=new WiFiServer(tcpPortNum,maxConnections+1);
|
||||
}
|
||||
|
||||
controlButton.reset();
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ void setup() {
|
|||
|
||||
// homeSpan.setHostNameSuffix("");
|
||||
homeSpan.setPortNum(1200);
|
||||
homeSpan.setMaxConnections(16);
|
||||
homeSpan.setMaxConnections(4);
|
||||
// homeSpan.setQRID("One1");
|
||||
homeSpan.enableOTA();
|
||||
homeSpan.setSketchVersion("Test 1.2.4");
|
||||
|
|
|
|||
Loading…
Reference in New Issue