From f130b0e2703866824470c65af69bfdf7cfb10cc5 Mon Sep 17 00:00:00 2001 From: Vitaliy D Date: Sun, 2 Jan 2022 15:08:42 +0100 Subject: [PATCH] Enable WiFi STA mode explicitly --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index ee504eb..e07974c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -79,6 +79,7 @@ MetricsExporter htu2xDDeviceExporter((ESP8266WebServer*)&server, (MetricsCollect /**************************/ void initWiFi(String SSID, String PSK) { WiFi.begin(SSID, PSK); + WiFi.enableSTA(true); Serial.print("Connecting to: " + SSID); while (WiFi.status() != WL_CONNECTED)