set AP inactive station timeout to 120 seconds

This commit is contained in:
jess 2026-04-02 16:11:07 -07:00
parent a611a72c48
commit e1209a89cc
1 changed files with 2 additions and 0 deletions

View File

@ -322,6 +322,8 @@ static int wifi_ap_init(void)
err = esp_wifi_start();
if (err) return err;
esp_wifi_set_inactive_time(WIFI_IF_AP, 120);
if (strlen(STA_SSID) > 0) {
esp_wifi_connect();
printf("WiFi: STA connecting to \"%s\"\n", STA_SSID);