将android设备与arduino配对(使用nRF8001 Bluefruit LE Breakout)

时间:2015-06-10 18:02:40

标签: android cordova bluetooth arduino-uno

我是Arduino的初学者和所有这些蓝牙的东西,很抱歉,如果我要求基础知识。

我一直在关注这个教程(https://learn.adafruit.com/getting-started-with-the-nrf8001-bluefruit-le-breakout/software-uart-service),我在Android设备上安装了示例应用程序,一切运行正常,但设备本身(未运行应用程序)在开始广告时无法发现arduino 。这是一个问题,因为我正在使用de BluetoothSerial插件(https://github.com/don/BluetoothSerial/)开发Cordova应用程序,我需要在执行任何其他操作之前配对组件。

我尝试过与iPhone等其他设备配对,但发现arduino的唯一设备是黑莓。

我做错了什么?

感谢您的时间

1 个答案:

答案 0 :(得分:1)

The nRF8001 is a Bluetooth Low Energy board. You not need to pair it with your iPhone or Android. (Usually you only need to pair Bluetooth Classic peripherals with your phone.)

The BluetoothSerial plugin uses Bluetooth Low Energy on iOS and Bluetooth Classic on Android. To use the nRF8001 with your Android phone try https://github.com/don/cordova-plugin-ble-central. There's an example project for connecting to the Adafruit Bluefruit LE hardware https://github.com/don/cordova-plugin-ble-central/tree/master/examples/bluefruitle.