Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit aafad1d Aug 9, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
node_modules first commit Aug 8, 2017
LICENSE.md
README.md
index.html
index.js
main.js
package-lock.json
package.json
renderer.js

README.md

Electron with Chrome WebBluetooth API

This is a basic integration of Electron and Chrome Web-Bluetooth API, Specifically, implementing 1) device info sample provided by the api, 2) getting values from a bluetooth device, and 3) setting a value to a bluetooth device.

installation

# Go into the repository
cd electron-web-bluetooth
# Install dependencies
npm install
# Run the app
npm start

To get heart rate data, I've used a Bluetooth Prephiral Simulator app called LightBlue downloaded from the App Store. There, create a virtual prephiral service for heart rate. Go to the 'Heart Rate Control Point' characterisitc, add read and write capabilities. You can also set a default Hex value. You need this to be able to get a result from 'Get Heart Rate' button.

resources

You can’t perform that action at this time.