【问题标题】:Scaning for bluetooth device with MIT App Inventor 2使用 MIT App Inventor 2 扫描蓝牙设备
【发布时间】:2015-12-02 21:16:09
【问题描述】:

我正在尝试将 arduino has bluetooh(HC-06) 与 Android 手机连接。我在下面找到并应用了块,但我只能连接到配对设备而无需扫描。

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

【问题讨论】:

    标签: android bluetooth arduino app-inventor


    【解决方案1】:

    documentation of the bluetooth component

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

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

    但是,您可以创建自己的扩展程序并创建自己的块,如需了解更多信息,请see the announcement here

    顺便说一句...如何正确连接请参见以下屏幕截图

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

    【讨论】:

    • 我正在尝试将 android 连接到我的 macbook air 并且我得到了 mac 列表,选择连接到它,但我得到一个带有错误 507 的 android 弹出窗口:无法连接。设备是否开启?
    • @marciokoko 请不要劫持线程。如果您有任何问题,请在新帖子中ask it
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-26
    相关资源
    最近更新 更多