bluetooth-helper
A wrapper for BLE APIs in FxOS. It help developers handle BLE things easier.
How to Install
- Declare bluetooth-helper 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/bluetooth-helper/lib/bluetooth_helper.js"></script>
- Done.
How to Use
Connect the device.
var ble = // Need BLE device's name or address to connect it. name: 'BT_NAME' // address: 'e4:a9:35:a4:ee:10';ble;
Send data to device after connected.
ble;
Reconnect the device.
ble;ble