BlueYeast
A wrapper for BLE APIs in FxOS. It help developers handle BLE things easier.
How to Install for FxOS
- Declare blue-yeast as dependency module in
bower.json
. Please check bower.json. - Download the module:
bower install
. - Import the module in
<head>
in HTML file.html<script src="bower_components/blue-yeast/lib/fxos/blue_yeast.js"></script>
- Done.
How to Install for node.js
- Declare blue-yeast as dependency module in
package.json
. Please check package.json. - Download the module:
npm install
. - Import the module in your script
var Bluetooth = require('blue-yeast').Bluetooth;
- Done.
How to Use
Connect Device
var ble = Bluetooth;
Send Data
ble;
Subscribe Notifications
ble;ble;
Reconnect Device
ble;ble
Ongoing Work
- Design and implement API: https://gist.github.com/evanxd/e23c805724cda59b8469