Page 1 of 1

How to - Socket disconnect handling on WIFI_EVENT_AP_STADISCONNECTED?

Posted: Tue Jul 09, 2024 1:25 pm
by trahman
Hi, according to the API documentation, sockets should be closed by the application if a station disconnects from a SoftAP: https://docs.espressif.com/projects/esp ... sconnected

Are there any examples of how to do this? I'd like to close the correct sockets when a station is disconnected, but I'm not sure how to determine which socket goes to which station.

Thank you.