安卓也有同样的问题,老哥,你们怎么解决的
ios小程序低功耗蓝牙与设备建立连接后弹出配对请求?// 搜索附近设备 onBluetoothDeviceFound() { let that = this; this.isFound = false; console.log('开始搜索附近设备'); uni.onBluetoothDeviceFound(res => { for (let i = 0; i < res.devices.length; i++) { let devicesDic = res.devices[i] let advertisData = CryptoTool.ab2hex(res.devices[i].advertisData).slice(4, 16); console.log(advertisData,that.imei,333333); if (advertisData && (advertisData == that.imei || devicesDic.deviceId == that.imei) && devicesDic.advertisServiceUUIDs) { that.deviceId = devicesDic.deviceId that.isFound = true; clearTimeout(timeIdThree) that.stopBluetoothDevicesDiscovery(); timeIdFour = setTimeout(function() { that.createBLEConnection() }, 1000); break } } }) }, getConnectedBluetoothDevices(){ uni.getConnectedBluetoothDevices({ services:[bleServerUUID, omAServerUUID, omCServerUUID], success: (res) => { console.log('已连接状态的设备:',res) }, }) }, // 创建蓝牙连接 createBLEConnection() { let that = this console.log('创建蓝牙连接',that.deviceId); uni.createBLEConnection({ deviceId: that.deviceId, success: res => { that.isFound = true; that.isReset = false; that.createNum = 1 console.log('创建蓝牙连接成功'); // 蓝牙连接成功,上报设备信息 bleControl.connectStateListen({ ...BLUE_STATE.CONNECTSUCCESS, deviceInfo: { ...that.deviceId } }) that.getBLEDeviceServices() that.onBLEConnectionStateChange() }, fail: (err) => { that.onBLEConnectionStateChange() uni.hideLoading() console.log('创建蓝牙连接失败',err); if(err.errCode == 10000){ that.openBluetoothAdapter() } bleControl.connectStateListen(BLUE_STATE.CONNECTFAILED) }, }) },[图片]
2024-12-16可以在onShow中接口wx.getEnterOptionsSync() 来判断返回值中的refererInfo 中appId
如何监听自己小程序打开的别的半屏小程序关闭动作?小程序A页面打开了半屏小程B,如何知道半屏小程序B关闭的动作,因为小程序A需要做对应的逻辑处理
2024-11-22求公告地址在哪里哇
【紧急】已上架小程序,9月1日更新版本,是否需要ICP备案?已上架小程序,9月1日更新版本,是否需要ICP备案?
2023-09-13同样的问题,几天没日志了
小程序实时日志-1/18 15:00后的日志查询不到?[图片] 如图,无法查询到1/18 15:00后的日志
2023-01-272.24.7有问题,请尽快解决
getCanvasHandlers is not defined小程序绘画时出现 getCanvasHandlers is not defined[图片] ,基础库中最新的版本都不行,而一些稍微旧一点的版本是可以的。 如图:红色圈的版本号是会出现报错信息:getCanvasHandlers is not defined,而2.24.1和再往前的基础库版本是可以正常运行的 [图片]
2022-07-07