Set WiFi persistent false to fix connect error #4

This commit is contained in:
Holger Fleischmann
2021-04-09 12:00:22 +02:00
parent 17845b6f9f
commit e044850b90

View File

@@ -14,6 +14,8 @@ MQTTClient mqttClient;
bool connectWiFi()
{
WiFi.persistent(false);
uint16_t retries = 10;
while (WiFi.status() != WL_CONNECTED && (retries--) > 0)
{