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

redpanda
Posts: 13
Joined: Thu Feb 04, 2021 8:42 am

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

Postby redpanda » Fri Jan 28, 2022 7:28 am

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"?

Who is online

Users browsing this forum: No registered users and 48 guests