Http server track client connections
Posted: Sat Sep 03, 2022 2:52 pm
I want to run a HTTP Webserver. Is there any way to track the current active client connections on the server, and if there are no active sockets found, I want to shut down the server and wifi.
I know that WiFi in AP mode has WIFI_EVENT_AP_STACONNECTED and WIFI_EVENT_AP_STADISCONNECTED event, but is there something similiar to get current client connections on the server, for graceful server shutdown?
I know that WiFi in AP mode has WIFI_EVENT_AP_STACONNECTED and WIFI_EVENT_AP_STADISCONNECTED event, but is there something similiar to get current client connections on the server, for graceful server shutdown?