Merge pull request #693 from leojz/master

declare wifi mode prior to connect
This commit is contained in:
Nick O'Leary 2020-05-09 22:21:53 +01:00 committed by GitHub
commit 289b64ce89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,7 @@ void setup_wifi() {
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {