I'm using STM32 as the main microcontroller and an ESP-12F is connected to it via serial port. I'm controlling ESP with AT commands.
I want to figure out how many devices are connected to my ESP. How should I do that?
I'm using STM32 as the main microcontroller and an ESP-12F is connected to it via serial port. I'm controlling ESP with AT commands.
I want to figure out how many devices are connected to my ESP. How should I do that?
I assume your device is acting as an access point, meaning that you previously configured it in that whay with
The command for obtaining the list of stations connected to the access point is
AT+CWLIF
:So, basically, you will get a row containing the
<IP>,<MAC address>
couple for each connected station. Counting those lines will tell you how many devices are connected to your ESP.