三月中旬了,也还没有支持哎
setBLEMTU 鸿蒙Next系统还不支持吗?鸿蒙Next系统HarmonyOS 5.0.0 微信版本V1.0.2 基础库版本V3.7.0 连接蓝牙设备成功后,setBLEMTU 失败: {"errMsg": "setBLEMTU:fail can only be invoked on android"} [图片]
03-11机型:OPPP K9 Pro 5G,貌似android都有这个问题 微信版本号:Version 8.0.56 系统版本号:ColorOS 13.1 代码片段: uni.startBluetoothDevicesDiscovery({ allowDuplicatesKey: true, success: function (res: any) { console.log("Bluetooth devices discovery started:", res); uni.onBluetoothDeviceFound(function (devices: any) { const device = devices.devices[0]; // console.log("devices设备设备设备蓝牙名称", devices); if (device.name) { console.log("Found device:", device.deviceId, device.name, device.localName); } console.log("Found device:", device); if (device && device.name === data.value.deviceName) { data.value.deviceId = device.deviceId; uni.stopBluetoothDevicesDiscovery({ success: function (res: any) { console.log("Bluetooth devices discovery stopped==============:", res); connectDevice(); // 连接设备 }, }); } }); }, fail: function (res: any) { console.log("Bluetooth devices discovery failed:", res); step.value = 2; loadingStatus.value = false; uni.hideLoading(); }, }); }
onBluetoothDeviceFound重复调用三次,就不会发现设备了?uni.startBluetoothDevicesDiscovery({ allowDuplicatesKey: true, success: function (res: any) { console.log("Bluetooth devices discovery started:", res); uni.onBluetoothDeviceFound(function (devices: any) { const device = devices.devices[0]; // console.log("devices设备设备设备蓝牙名称", devices); if (device.name) { console.log("Found device:", device.deviceId, device.name, device.localName); } console.log("Found device:", device); if (device && device.name === data.value.deviceName) { data.value.deviceId = device.deviceId; uni.stopBluetoothDevicesDiscovery({ success: function (res: any) { console.log("Bluetooth devices discovery stopped==============:", res); connectDevice(); // 连接设备 }, }); } }); }, fail: function (res: any) { console.log("Bluetooth devices discovery failed:", res); step.value = 2; loadingStatus.value = false; uni.hideLoading(); }, }); }
02-24怎么解决的
小程序IOS系统 wx.writeBLECharacteristicValue1509000原因?小程序 IOS系统 wx.writeBLECharacteristicValue 返回 {errno: 1509000, errMsg: "writeBLECharacteristicValue:ok"},蓝牙锁无反应; 安卓系统返回 {errno: 0,errCode: 0, errMsg: "writeBLECharacteristicValue:ok"}蓝牙锁正常开锁
02-17同样的问题可以私信我一下吗
企业ID与实体名称不一致[图片]
2022-07-14