port/ESP32/network.AP_IF: get IP addresses from connected stations
Hello and thanks for your time!
When the ESP32 is working as an access point, it is possible get a MAC list of connected stations via ap.status('stations'). But there is (i've found) no way to find the IP, which the ESP32 has assigned to the corresponding station.
I my case, the ESP32 is working as a mobile accesspoint and webserver, handling the communication between robots and browsers. To configure the robot controlling HTML pages, i need the corrent IP addresses. I am at a point where I know, which robot is connected from a dictionary, where I store the MAC and other info, but i am unable to find the needed IP.
An extension of the station list to include the IP entry (if assigned) would be very helpful.
Thanks in advance.
List mac addresses connected to ESP8266 via AP_IF mode
Similar to #186, would it be possible to list the devices that are connected to an ESP8266 broadcasting a wireless access point?
import network
ap = network.WLAN(network.AP_IF)
ap.active(True)
ap.config(essid='mode_ap')
ap.status('stations')