always set WiFi.mode()
This commit is contained in:
parent
8b97216931
commit
eefdad9da4
@ -161,6 +161,7 @@ void setup(void) {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
WiFi.mode(WIFI_STA);
|
||||||
Serial.printf("Connecting to %s\n", ssid);
|
Serial.printf("Connecting to %s\n", ssid);
|
||||||
if (String(WiFi.SSID()) != String(ssid)) {
|
if (String(WiFi.SSID()) != String(ssid)) {
|
||||||
WiFi.begin(ssid, password);
|
WiFi.begin(ssid, password);
|
||||||
|
Loading…
Reference in New Issue
Block a user