diff --git a/index.html b/index.html new file mode 100644 index 0000000..9fed44b --- /dev/null +++ b/index.html @@ -0,0 +1,12 @@ + + + + + Ridein + + + + + + + diff --git a/js/main.js b/js/main.js new file mode 100644 index 0000000..2a16c51 --- /dev/null +++ b/js/main.js @@ -0,0 +1,13 @@ +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); + } +});