wx.openBluetoothAdapter({ refreshCache: false, success: (res) => { print('获取蓝牙适配器成功', res, !mIsBleConntected); if (!mIsBleConntected) { getBluetoothAdapterState(); } }, fail: (res) => { print("获取蓝牙适配器失败") wx.showToast({ title: "蓝牙开启失败", icon: 'none' }); } }) 是这个接口吗,遇到了同样的问题,加这个属性好像没什么作用
安卓手机系统蓝牙连接着蓝牙设备,wx.createBLEConnection连接不上?安卓手机的小程序不能像IOS手机的小程序一样,系统蓝牙配对着蓝牙设备,直接调用wx.createBLEConnection连接指定地址也能连接上。安卓手机这边小程序要怎么写才能做到这样操作?
2023-08-30