mirror of
https://github.com/grillbaer/esp32-geiger-counter.git
synced 2025-12-21 13:23:15 +01:00
Set WiFi persistent false to fix connect error #4
This commit is contained in:
@@ -14,6 +14,8 @@ MQTTClient mqttClient;
|
||||
|
||||
bool connectWiFi()
|
||||
{
|
||||
WiFi.persistent(false);
|
||||
|
||||
uint16_t retries = 10;
|
||||
while (WiFi.status() != WL_CONNECTED && (retries--) > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user