From 8745d3ea9b33d01c3c502f4812ca3deac9f1453d Mon Sep 17 00:00:00 2001 From: Patrick Baxter Date: Wed, 20 Nov 2024 13:43:18 +1300 Subject: [PATCH] leading search device --- .../app/src/main/AndroidManifest.xml.orig | 33 +++++++++++++++++++ src/contexts/Device/index.tsx | 1 + 2 files changed, 34 insertions(+) create mode 100644 sidekick/app/src/main/AndroidManifest.xml.orig diff --git a/sidekick/app/src/main/AndroidManifest.xml.orig b/sidekick/app/src/main/AndroidManifest.xml.orig new file mode 100644 index 00000000..98bb6786 --- /dev/null +++ b/sidekick/app/src/main/AndroidManifest.xml.orig @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/contexts/Device/index.tsx b/src/contexts/Device/index.tsx index a3bb0ec7..d15b9aed 100644 --- a/src/contexts/Device/index.tsx +++ b/src/contexts/Device/index.tsx @@ -702,6 +702,7 @@ const [DeviceProvider, useDevice] = createContextProvider(() => { onMount(async () => { await setupListeners(); const monitorInterval = monitorAPConnection(); + searchDevice(); const discoveryInterval = setInterval(() => { searchDevice(); }, 30000); // Every 30 seconds