Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

How to broadcasting AP ssid

Open odilonafonso opened this issue 10 years ago • 2 comments

How should I use WiFi.softAP () so that the ssid is visible for connection ? I examined the prototype function in ESP8266WiFiAP.h:

bool SoftAP (const char * ssid, const char * passphrase = NULL, int channel = 1, ssid_hidden int = 0);

But not figured out how the sample applications configure broadcast, because I can not see the utilization of the ssid_hidden argument. The example WiFiAccessPoint from ESP8266WiFi Arduino IDE uses the call:

WiFi.softAP (ssid, password);

Without explicitly add ssid_hidden argument.

I figured that because the function take over as the default value 0, by calling the function with fewer arguments, the default was used (ssid_hidden = 0) to broadcast. However, when I used to call:

WiFi.sofAT (my_ssid, my_psk)

that returned true, the AP has been created and yet is not visible for connection.

Does anyone know how it works?

thank you

odilonafonso avatar Jan 19 '16 15:01 odilonafonso

with WiFi.SoftAP it will be broadcast, only when ssid_hidden is 1 it will hide it (no broadcast). using:

WiFi.SoftAP("APNAME","PASS1234567");

will result in a visible AP.

Links2004 avatar Jan 19 '16 17:01 Links2004

Ok. The problem must be on my pc, it does not show AP recently created. After a restart it goes to show. Thank you.

odilonafonso avatar Jan 19 '16 17:01 odilonafonso