esp_wifi_set_sleep_min_active_time() function
Set the min active time for wifi to enter the sleep state when light sleep
Arguments
min_active_time
minimum timeout time for waiting to receive data, when no data is received during the timeout period, the wifi enters the sleep process.