Set WiFi to station mode only (disables AP SSID broadcast)

This commit is contained in:
Mark van Renswoude 2017-10-05 17:06:06 +02:00
parent c93d12abd8
commit 015a408441

View File

@ -59,6 +59,7 @@ void setup()
stairs->init(pwmDriver); stairs->init(pwmDriver);
_dln("Initializing WiFi"); _dln("Initializing WiFi");
WiFi.mode(WIFI_STA);
WiFi.hostname(WiFiHostname); WiFi.hostname(WiFiHostname);
WiFi.begin(WiFiSSID, WiFiPassword); WiFi.begin(WiFiSSID, WiFiPassword);