Skip to content

Commit

Permalink
core: frontend: wifi: WifiUpdater: Improve frequency interval
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Jul 5, 2024
1 parent 3743630 commit 405a3c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/frontend/src/components/wifi/WifiUpdater.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 405a3c9

Please sign in to comment.