Page 1 of 1

SoftAP: how to associate aid with the newly assigned IP address?

Posted: Fri Jan 28, 2022 7:28 am
by redpanda
In programming Wifi softAP, I maintain a "connection list" via events WIFI_EVENT_AP_STACONNECTED and WIFI_EVENT_AP_STADISCONNECTED, where each event provides index "aid" for adding and deleting purposes.

Once after the WIFI_EVENT_AP_STACONNECTED, softAP assigns a new IP address to the connected client and fires the event IP_EVENT_AP_STAIPASSIGNED. However, this event data (ip_event_ap_staipassigned_t) provides no "aid" but IP address only.

Without the "aid" index, how can I update the IP address info associated with the connection indexed by the "aid"?
Any API is able to retrieve the IP address by "aid"?