always set WiFi.mode()

This commit is contained in:
Floris Romeijn 2016-11-23 00:15:02 +01:00
parent 8b97216931
commit eefdad9da4

View File

@ -161,6 +161,7 @@ void setup(void) {
}
else
{
WiFi.mode(WIFI_STA);
Serial.printf("Connecting to %s\n", ssid);
if (String(WiFi.SSID()) != String(ssid)) {
WiFi.begin(ssid, password);