Updates the esp32 template to use eventsocket
This commit is contained in:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user