 try {
          const response = await fetch(`${urlPrefix}/api/${section}`); // Replace with actual endpoint
          if (!response.ok) throw new Error(`Error: ${response.statusText}`);
          const encryptedText = await response.text();
          const decryptedText = decrypt(encryptionKey, encryptedText);
          const data = JSON.parse(decryptedText);

          // Populate WiFi credentials
          return data;
        } catch (error) {
          console.error(`Failed to fetch ${section} informa