From 7a206e17477782f0a8e05cce8954672abb21f4eb Mon Sep 17 00:00:00 2001 From: ErikrafT <139592038+erikraft@users.noreply.github.com> Date: Fri, 11 Apr 2025 20:34:36 -0300 Subject: [PATCH] Update index.html --- public/index.html | 72 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 54 insertions(+), 18 deletions(-) diff --git a/public/index.html b/public/index.html index fc281e3..b3028bb 100644 --- a/public/index.html +++ b/public/index.html @@ -953,26 +953,62 @@ - - try { - const device = await navigator.bluetooth.requestDevice({ - acceptAllDevices: true - }); - alert(`🔗 Dispositivo pareado: ${device.name || 'Sem nome'}`); - // Aqui você pode iniciar conexão GATT e enviar info - } catch (error) { - console.error("Erro ao conectar:", error); - alert("❌ Conexão cancelada ou falhou."); - } - }); -