Bluetooth App - mozilla/project_haiku.iot GitHub Wiki
The Problem
Make a smart phone application that can read from and write to a bluetooth device with BLE (such as a Fitbit, an Arduino board, etc.)
Solution Options
- Native applications (Android/iOS)
- Phonegap/Cordova application (Web-based, with libraries that allow access to special features on-device)
- Web Bluetooth API (Currently only experimental Chrome support)
Solution Exploration
- Worked through tutorial on iOS and general bluetooth functionality: https://www.raywenderlich.com/52080/introduction-core-bluetooth-building-heart-rate-monitor
- Worked through tutorial on Android native bluetooth scanner: http://code.tutsplus.com/tutorials/create-a-bluetooth-scanner-with-androids-bluetooth-api--cms-24084
- Decided on cordova-plugin-ble-central because of available documentation, desired functionality, well-maintained. Source: https://github.com/don/cordova-plugin-ble-central
- Worked on Cordova/Bluetooth scanning and connecting and reading battery life example: https://github.com/kglazko/project_haiku.iot/tree/kateble/sampleBLE
- Currently: Seeing if Meteor is a better option (embodies cordova as well)