This is a demo of the Web Bluetooth API that connects to a heart rate monitor and displays the heart rate. It is currently only supported in Chrome on desktop and Android.
- A heart rate monitor that supports the Bluetooth LE Heart Rate Service
- A browser that supports the Web Bluetooth API (currently only Chrome on desktop and Android)
- Go to https://web-bluetooth-heart-rate-demo.joshdoesthis.com/
- Click the "Connect" button
- Select your heart rate monitor from the list
- Click "Pair"
- Your heart rate will be displayed
- Clone the repo
- Run
yarn
to install dependencies - Run
yarn dev
to start the dev server - Open
http://localhost:3000
in your browser