From 405a3c9f4238b2052c6642e2bac3a47f3e9cafc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Thu, 4 Jul 2024 21:18:13 -0300 Subject: [PATCH] core: frontend: wifi: WifiUpdater: Improve frequency interval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- core/frontend/src/components/wifi/WifiUpdater.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/frontend/src/components/wifi/WifiUpdater.vue b/core/frontend/src/components/wifi/WifiUpdater.vue index 115b8c1c31..e11e6578a3 100644 --- a/core/frontend/src/components/wifi/WifiUpdater.vue +++ b/core/frontend/src/components/wifi/WifiUpdater.vue @@ -20,7 +20,7 @@ export default Vue.extend({ callPeriodically(this.fetchSavedNetworks, 5000) callPeriodically(this.fetchNetworkStatus, 5000) callPeriodically(this.fetchHotspotStatus, 10000) - callPeriodically(this.fetchAvailableNetworks, 20000) + callPeriodically(this.fetchAvailableNetworks, 5000) callPeriodically(this.fetchHotspotCredentials, 10000) }, methods: { @@ -101,7 +101,7 @@ export default Vue.extend({ await back_axios({ method: 'get', url: `${wifi.API_URL}/scan`, - timeout: 20000, + timeout: 1000, }) .then((response) => { const saved_networks_ssids = wifi.saved_networks?.map((network: SavedNetwork) => network.ssid)