【发布时间】:2015-12-02 21:16:09
【问题描述】:
我正在尝试将 arduino has bluetooh(HC-06) 与 Android 手机连接。我在下面找到并应用了块,但我只能连接到配对设备而无需扫描。
如何使用 MIT App Inventor 2 扫描可用的蓝牙设备并连接它们?扫描操作的块应该是什么?
【问题讨论】:
标签: android bluetooth arduino app-inventor
我正在尝试将 arduino has bluetooh(HC-06) 与 Android 手机连接。我在下面找到并应用了块,但我只能连接到配对设备而无需扫描。
如何使用 MIT App Inventor 2 扫描可用的蓝牙设备并连接它们?扫描操作的块应该是什么?
【问题讨论】:
标签: android bluetooth arduino app-inventor
见documentation of the bluetooth component
如您所见,没有可用于扫描设备的块,您只能获取已配对蓝牙设备的列表....
地址和名称
已配对蓝牙设备的地址和名称
但是,您可以创建自己的扩展程序并创建自己的块,如需了解更多信息,请see the announcement here。
编辑:要扫描设备,您可以使用 classic bluetooth extension。
注意:我是那个扩展的作者。
【讨论】: