-->
Page 1 of 1

WiFiClient acts as AP

PostPosted: Wed May 27, 2015 4:28 pm
by agarza
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

Re: WiFiClient acts as AP

PostPosted: Sun Jun 14, 2015 12:54 pm
by timmacman
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);