const startButton = document.getElementById("start"); const FTM_SERVICE_UUID = "00001825-0000-1000-8000-00805f9b34fb"; startButton.addEventListener("click", async () => { try { const device = await navigator.bluetooth.requestDevice({ acceptAllDevices: true, }); console.log(device); } catch (error) { console.log(error); } });