ESP access point connection indicator LED

Hi

I want to set up my esp32 as AP(access point) and connect it to my phone via wifi connection.
(No Internet and not router) Using esp as wifi server.
I require a LED to blink to show whenever the connection is lost. I managed to find something in regard to this, but it was for when connecting it to Internet or via router.

Can anyone help me and direct me to where I can find info on this. I couldn't find anything on Internet.

If your ESP32 is an Acess Point, the phone must connect to the Access Point, the Access Point can't connect to the phone. You will need something running on your phone to cause it to connect to the WiFi network created by your ESP32.

Hi John

Thanks for the reply. That is what I meant.
Yes I am using phone with App to connect.
Once connection is established I require a LED to blink to show connection. On some modules they have it already or they have a status pin.
I am using the a standalone esp32 module and it doesn't have a status pin therefore I was wondering if it is possible to create a code to achieve this.

I'm not trying to make an LED blink, I'm trying to determine when I have connection and when not and to show this via a LED to indicate status.
Hope this clarifies my problem a bit better.

The ESP AP is built upon the Wifi library. The OP can look through the WiFi library,
arduino-esp32/libraries/WiFi/src at master · espressif/arduino-esp32 · GitHub to see what thingies are available to the user.

such as

/**
 * Get the count of the Station / client that are connected to the softAP interface
 * @return Stations count
 */
uint8_t WiFiAPClass::softAPgetStationNum()
{

and things like

/**
 * Get the softAP interface IP address.
 * @return IPAddress softAP IP
 */
IPAddress WiFiAPClass::softAPIP()
{

and others that might do what the OP wants.

Much appreciated

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.