Skip to content

Heart Rate Measurement demo application using the web-bluetooth library.

Notifications You must be signed in to change notification settings

sabertooth-io/demo-heart_rate_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web-bluetooth image

Web-Bluetooth Demo: Heart Rate Service

This simple demo uses the Web-Bluetooth library to connect to a device broadcasting a Heart Rate Service characteristic and reads the heart rate.

Requirements


Web-Bluetooth is behind an experimental flag in Chrome 45+. Go to chrome://flags/#enable-web-bluetooth to enable the flag. Restart Chrome and you should be good to go.

Experiment with web-bluetooth on the following devices.

  • Linux
  • ChromeOS
  • Android

Any Bluetooth Low Energy Heart Rate Monitor advertising the Heart Rate Service. We used the Polar H7.

Installation


First, fork this repo and then run:

$ npm install
$ npm run demo
$ open http://localhost:3000

Use


Connect to any device by its Name or Name Prefix. This demo uses four of the many methods in the web-bluetooth library.

new BluetoothDevice()
connect()
disconnect()
startNotifications()

For more information, visit the web-bluetooth docs.

About

Heart Rate Measurement demo application using the web-bluetooth library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published