微信小程序蓝牙做好后,一直没发现这个问题,因为测试的手机不多,蓝牙断连的情况也不频繁。微信做事能不能靠点谱?--微信小程序教程。
目前暂时只发现 :美图手机,华为荣耀手机,魅族pro5手机 有问题。
初始化,扫描,获取蓝牙设备,都没问题,但是到连接蓝牙的时候(createBLEConnection)调用蓝牙的接口就不执行了 success,fail,complete都没有返回,如果是fail返回连接失败还稍微好点,最起码可以想办法优化。(确定找到蓝牙设备了,)。 这个问题很严重,在程序里根本找不到解决办法。
本文来自微信小程序开发者论坛 微信小程序工厂 http://www.xcxgc.com 转载请保留。
微信小程序开发者回答:
夜***:
的确有这个问题。测试发现,ios的可以直接连接,但是荣耀的就是连接不上去(蓝牙设备已经扫描出来了)。
高***:
我也遇到这个问题,请问解决了吗?ios的可以直接连接并打印,就是安卓的连不上,每次都是连接失败或者没响应,能搜到具体设备
奇了个怪!+微信小程序教程
无***:
兄弟们,有没有搞定?
m***:
同问
柳***:
android平台连接蓝牙,成功率很低,而ios连上。差距啊!
在线等 急急急!!!微信小程序授权给第三方,转发客服消息到客服网页版转发不过去 ...
本文网址:http://www.91bianli.com/weixinxiaochengxu/56363.html