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:
Gregg 2021-02-12 13:23:02 -06:00
parent 7e03998865
commit 7400383b0a
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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");