You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mohemmionic5/Mohem/plugins_/cordova-plugin-ble-central/examples/bluefruitle
ashwaq 66795daf5e add missing files 6 years ago
..
hooks add missing files 6 years ago
README.md add missing files 6 years ago
config.xml add missing files 6 years ago

README.md

Adafruit UART

This example will connect to hardware running the Nordic UART service. Many of the Bluetooth LE products from Adafruit run the Nordic UART service. This example will also connect to the Adafruit Bluefruit LE Friend, puck.js, or BBC Micro:bit running Espruino.

Android

cordova platform add android
cordova run android --device

NOTE: Some Android devices have trouble filtering by UUID when scanning. If your Android phone can't find your Bluetooth peripheral, try removing the service filter.

Change

ble.scan([bluefruit.serviceUUID], 5, app.onDiscoverDevice, app.onError);

To

ble.scan([], 5, app.onDiscoverDevice, app.onError);

iOS

cordova platform add ios
cordova run ios --device

Note: Sometimes Xcode can't deploy from the command line. If that happens, open BluefruitLE.xcworkspace and deploy to your phone using Xcode.

open platforms/ios/BluefruitLE.xcworkspace

Building a Peripheral

If you have an Arduino Uno and Adafruit's Bluefruit LE breakout board. You can run the callbackEcho sketch and see Adafruit's tutorial for setting up the hardware and Arduino code.

Hardware