Updates the esp32 template to use eventsocket

This commit is contained in:
Rune Harlyk
2024-04-23 19:35:29 +02:00
committed by Rune Harlyk
parent 7e521235f4
commit 5148891fc4
31 changed files with 366 additions and 1809 deletions
+3 -10
View File
@@ -10,6 +10,7 @@
import Reload from '~icons/tabler/reload';
import { onMount, onDestroy } from 'svelte';
import RssiIndicator from '$lib/components/RSSIIndicator.svelte';
import type { NetworkItem } from '$lib/types/models';
// provided by <Modals />
export let isOpen: boolean;
@@ -27,15 +28,7 @@
'WAPI PSK'
];
type networkItem = {
rssi: number;
ssid: string;
bssid: string;
channel: number;
encryption_type: number;
};
let listOfNetworks: networkItem[] = [];
let listOfNetworks: NetworkItem[] = [];
let scanActive = false;
@@ -103,7 +96,7 @@
use:focusTrap
>
<div
class="bg-base-100 rounded-box pointer-events-auto flex max-h-full min-w-fit max-w-md flex-col justify-between p-4 shadow-lg"
class="bg-base-100 shadow-secondary/30 rounded-box pointer-events-auto flex max-h-full min-w-fit max-w-md flex-col justify-between p-4 shadow-lg"
>
<h2 class="text-base-content text-start text-2xl font-bold">Scan Networks</h2>
<div class="divider my-2" />