add explicit mode to all examples

So people stop complaining when ap starts by default cause they dont know how esp works.
This commit is contained in:
tablatronix
2019-08-14 13:40:19 -05:00
parent 34d9a975b5
commit 1b8d870c22
11 changed files with 17 additions and 1 deletions
@@ -2,6 +2,7 @@
WiFiManager wm;
void setup() {
WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP
// put your setup code here, to run once:
Serial.begin(115200);
@@ -3,6 +3,7 @@ WiFiManager wm;
WiFiManagerParameter custom_mqtt_server("server", "mqtt server", "", 40);
void setup() {
WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP
// put your setup code here, to run once:
Serial.begin(115200);
@@ -17,6 +17,7 @@ bool portalRunning = false;
bool startAP = false; // start AP and webserver if true, else start only webserver
void setup() {
WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP
// put your setup code here, to run once
Serial.begin(115200);
Serial.println("\n Starting");