Post topics, source code that relate to the Arduino Platform

User avatar
By agarza
#18668 I wrote a small program with the Arduino IDE that is based on the WiFiClient demo. It works fine.

But... It seems it is also acting as an Access Point! I can see the SSID name "ESPap" showing on wireless network scan.

Any idea of what is going on? Or how to disable the access point mode?

Thanks
User avatar
By timmacman
#20440 I had the same problem; dug into the Library files & found "mode(WiFiMode)"; added the WiFi.mode statement & it behaves as I had expected.
I've also added the enum info for WiFiMode for edification:
WiFi.mode(WIFI_STA); //NOTE: If this is not set, the device is in AP/DHCP server mode!
//enum WiFiMode { WIFI_STA = 1, WIFI_AP = 2, WIFI_AP_STA = 3 };
WiFi.begin(ssid, password);