How to - Socket disconnect handling on WIFI_EVENT_AP_STADISCONNECTED?

trahman
Posts: 1
Joined: Tue Jul 09, 2024 1:17 pm

How to - Socket disconnect handling on WIFI_EVENT_AP_STADISCONNECTED?

Postby trahman » Tue Jul 09, 2024 1:25 pm

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.

Who is online

Users browsing this forum: No registered users and 93 guests