- 蓝牙BLE writeBLECharacteristicValue 写入失败?
iQOO neo8 BLE蓝牙通讯,每次都会报错,都需要重新开关蓝牙才能恢复正常,帮忙分析下是什么原因? {"errno":1500104, "errCode": 10008, "errMsg".:"writeBLECharacteristicValue:fail:system error, writeCharacteristic fail"} [图片] // BLE 写入数据 wrireBLECharacteristicValue(value, deviceID, success, fail) { if (!deviceID || !deviceID.length) { deviceID = this.deviceId; } console.log("向蓝牙发送的数据 " + app.Util.arrayBufferToArray(value)); wx.writeBLECharacteristicValue({ deviceId: deviceID, serviceId: SERVICE_UUID, characteristicId: CHARACTERISTIC_UUID, writeType: 'write', value: value, success: success, fail: fail }); }, 已上传本地日志: 手机机型: iQOO neo8 微信号:qygandr 时间点:2024年9月23日 17:50 ~ 18:20
2024-09-23 - getAppAuthorizeSetting 不同Android机型差异性问题?
const appAuthorizeSetting = wx.getAppAuthorizeSetting() console.warn("蓝牙授权状态:" + appAuthorizeSetting.bluetoothAuthorized) console.warn("地理位置授权状态:" + appAuthorizeSetting.locationAuthorized) console.warn("精准定位状态: " + appAuthorizeSetting.locationReducedAccuracy) console.warn("setting >>>>>" + JSON.stringify(appAuthorizeSetting)); // 华为鸿蒙系统表现和其他Android机型表现不一样 // 华为鸿蒙系统 微信授权都正常的情况下。会有 bluetoothAuthorized 字段,但是字段值都是 ‘denied’ // 别的Android手机 没有 bluetoothAuthorized 字段 // 请保持一致 如果要保留 bluetoothAuthorized 字段请确保场景真实。 if (appAuthorizeSetting.bluetoothAuthorized == 'denied') { wx.showModal({ content: '请开启微信获取蓝牙功能权限', showCancel: false, title: '提示', success: (result) => { } }) return } 鸿蒙: [图片] 小米: [图片]
2024-08-01 - 小程序API wx.getAppAuthorizeSetting() 返回值异常?
小程序API wx.getAppAuthorizeSetting().bluetoothAuthorized == 'denied' 确认微信App已经授权访问了 蓝牙权限,但是一直返回 denied // 获取微信 APP 授权设置 const appAuthorizeSetting = wx.getAppAuthorizeSetting() console.log("蓝牙授权状态:" + appAuthorizeSetting.bluetoothAuthorized) console.log("地理位置授权状态:" + appAuthorizeSetting.locationAuthorized) console.log("精准定位状态: " + appAuthorizeSetting.locationReducedAccuracy) if (appAuthorizeSetting.bluetoothAuthorized == 'denied') { wx.showModal({ content: '请开启微信获取蓝牙功能权限', showCancel: false, title: '提示', success: (result) => { wx.openAppAuthorizeSetting(); }, fail: (res) => {}, complete: (res) => {}, }) return }
2024-08-01 - 微信小程序主体为个人进行备案一直提示证件有效期不足1月?
微信小程序备案一直提示证件有效期不足一个月 [图片]
2024-07-09