set AP inactive station timeout to 120 seconds
This commit is contained in:
parent
a611a72c48
commit
e1209a89cc
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue