Skip to content

Commit

Permalink
2s delay after WiFi.mode(WIFI_AP);
Browse files Browse the repository at this point in the history
Bug was reported by different users, this delay solved it.
espressif/arduino-esp32#2025 (comment)
  • Loading branch information
AlphaLima committed Jun 9, 2020
1 parent 15bfe67 commit 7205526
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ESP32-Serial-Bridge.ino
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ void setup() {
if(debug) COM[DEBUG_COM]->println("Open ESP Access Point mode");
//AP mode (phone connects directly to ESP) (no router)
WiFi.mode(WIFI_AP);
delay(2000);
WiFi.softAPConfig(ip, ip, netmask); // configure ip address for softAP
WiFi.softAP(ssid, pw); // configure ssid and password for softAP
#endif
Expand Down

0 comments on commit 7205526

Please sign in to comment.