husons
V2EX  ›  问与答

小程序蓝牙模块开发,为什么搜索不到手机蓝牙设备?

  •  
  •   husons · Aug 23, 2018 · 2974 views
    This topic created in 2907 days ago, the information mentioned may be changed or developed.

    最近公司做微信小程序蓝牙模块,测试阶段打算在 2 个手机之间实现蓝牙通信功能,后期将接收端替换为智能硬件设备,现在发现通过小程序蓝牙助手只能搜索到非手机设备,这是为什么?有没有好的测试思路提供一下,感谢

    5 replies    2018-10-23 09:21:47 +08:00
    zhujinliang
        1
    zhujinliang  
       Aug 23, 2018 via iPhone   ❤️ 1
    我在用小程序做 BLE 的开发,小程序只能发现服务,并不能创建服务
    要两个手机通信的话,必须一个创建服务,另一个发现这个服务后才能进行连接
    你可以试试,下载一个叫 LightBlue 的软件,创建一个 Virtual Peripheral,另一个手机上小程序蓝牙能发现这个服务
    husons
        2
    husons  
    OP
       Aug 24, 2018
    @zhujinliang 好的,感谢我试试
    husons
        3
    husons  
    OP
       Oct 23, 2018
    ![我的头像]( https://imgchr.com/i/iDOOz9)
    husons
        4
    husons  
    OP
       Oct 23, 2018
    husons
        5
    husons  
    OP
       Oct 23, 2018
    [Imgur]( )
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2848 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 83ms · UTC 13:41 · PVG 21:41 · LAX 06:41 · JFK 09:41
    ♥ Do have faith in what you're doing.