|
|
6 years ago | |
|---|---|---|
| .. | ||
| hooks | 6 years ago | |
| README.md | 6 years ago | |
| config.xml | 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