Skip to content

Commit

Permalink
Merge pull request #32 from vi7/wifi_mode_explicit
Browse files Browse the repository at this point in the history
Enable WiFi STA mode explicitly
  • Loading branch information
vi7 authored Jan 2, 2022
2 parents c228ed3 + f130b0e commit 1a81a41
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 1a81a41

Please sign in to comment.