Called the TCPKeepAlive feature

This commit is contained in:
anschrammh 2020-12-16 00:43:57 +01:00
parent 19cf9ac678
commit e1ac857088

View File

@ -16,6 +16,7 @@ void setup()
{
Serial.begin(115200);
Serial.printf("\nSetup start\n");
ss.enableTCPKeepAlive(15, 5, 5);
gotIpEventHandler = WiFi.onStationModeGotIP(&(gotIp));
disconnectedEventHandler = WiFi.onStationModeDisconnected(&(lostCon));
WiFi.persistent(false);