JAndrassy / WiFiEspAT

Arduino networking library. Standard Arduino WiFi networking API over ESP8266 or ESP32 AT commands.
GNU Lesser General Public License v2.1
271 stars 44 forks source link

Disable AP mode #49

Closed gimenezfrg closed 2 years ago

gimenezfrg commented 3 years ago

Hi, I'm using this library to connect over a wifi network and send data to an API, everything works fine.

The question is that I realized that ESP is active as if it were a router too, that is, if I look at the available wireless networks the ESP appears, I would like to disable it, is there how?

JAndrassy commented 3 years ago

see the Tools section of WiFiEspAT examples in Arduino IDE Examples menu

gimenezfrg commented 3 years ago

I can connect and use normally, I just wish it didn't appear as a network, I would like to disable this function if possible.

image

image

image

gimenezfrg commented 3 years ago

I think I understand, I put these three lines before BEGIN:

  WiFi.disconnect(); // to clear the way. not persistent
  WiFi.setPersistent(); // set the following WiFi connection as persistent
  WiFi.endAP(); // to disable default automatic start of persistent AP at startup

Is correct?

JAndrassy commented 3 years ago

I don't remember the details, but here is the doc: https://github.com/jandrassy/WiFiEspAT#the-wifi-object-differences