Skip to content

Commit

Permalink
Enable WiFi STA mode explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
vi7 committed Jan 2, 2022
1 parent c228ed3 commit f130b0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f130b0e

Please sign in to comment.