使用MIT App Inventor 2扫描蓝牙设备

时间:2015-12-02 21:16:09

标签: android bluetooth arduino app-inventor

我正在尝试将一个arduino连接bluetooh(HC-06)与Android手机连接。我在块下面找到并应用但我只能在没有扫描的情况下连接到配对设备。

如何扫描可用的蓝牙设备并使用MIT App Inventor 2进行连接?扫描操作的块应该是什么?

enter image description here

1 个答案:

答案 0 :(得分:2)

请参阅documentation of the bluetooth component

如您所见,没有可用于扫描设备的块,您只能获得配对蓝牙设备列表 ....

  

AddressesAndNames
      配对蓝牙设备的地址和名称

但是,您可以创建自己的扩展程序并创建自己的块,有关详细信息,请see the announcement here

顺便说一句......请参阅以下屏幕截图,了解如何正确连接 enter image description here

编辑:要扫描设备,您可以使用classic bluetooth extension
注意:我是该扩展程序的作者。