Skip to content

Exemples ​

Bootstrap startup ​

ts
import { initializeHotspotAtStartup } from '$lib/hotspot/bootstrap';

void initializeHotspotAtStartup({
	initializeTimeoutMs: 800,
	readTimeoutMs: 2500
});

Lecture UI ​

ts
import { hotspotStore } from '$lib/stores/hotspotStore';

// Exemple: afficher un QR Wifi seulement si active
if ($hotspotStore.status === 'enabled' && $hotspotStore.credentials) {
	// render wifi QR from hotspot credentials
}

Retour au README