diff --git a/src/components/SettingForms/System/SettingSaveRecall.tsx b/src/components/SettingForms/System/SettingSaveRecall.tsx index b2a3de4..9a240ed 100644 --- a/src/components/SettingForms/System/SettingSaveRecall.tsx +++ b/src/components/SettingForms/System/SettingSaveRecall.tsx @@ -48,7 +48,7 @@ export async function handleSystemRecall() { const url = `${camBase}/api/fetch-config?id=GLOBAL--Device`; const controller = new AbortController(); - const timeoutId = setTimeout(() => controller.abort(), 7000); + const timeoutId = setTimeout(() => controller.abort(), 70000); try { const response = await fetch(url, { diff --git a/src/hooks/useCameraWifiandModem.ts b/src/hooks/useCameraWifiandModem.ts index c099a63..13a15de 100644 --- a/src/hooks/useCameraWifiandModem.ts +++ b/src/hooks/useCameraWifiandModem.ts @@ -7,7 +7,7 @@ const camBase = import.meta.env.MODE !== "development" ? CAM_BASE : ""; const getWiFiSettings = async () => { const response = await fetch(`${camBase}/api/fetch-config?id=ModemAndWifiManager-wifi`, { - signal: AbortSignal.timeout(300000), + signal: AbortSignal.timeout(600000), }); if (!response.ok) { throw new Error("Cannot fetch Wifi settings"); @@ -29,7 +29,7 @@ const updateWifiSettings = async (wifiConfig: WifiConfig) => { const getModemSettings = async () => { const response = await fetch(`${camBase}/api/fetch-config?id=ModemAndWifiManager-modem`, { - signal: AbortSignal.timeout(300000), + signal: AbortSignal.timeout(600000), }); if (!response.ok) { throw new Error("Cannot fetch modem settings");