IOS需要加入services参数,如下: wx.getConnectedBluetoothDevices({ services: ['FFFA'], success (res) { console.log(res) } })
wx.getConnectedBluetoothDevices部分IOS设备取不到已经连接的设备?{"benchmarkLevel":-1,"language":"zh_CN","wifiEnabled":true,"safeArea":{"bottom":810,"height":763,"top":47,"width":390,"left":0,"right":390},"bluetoothAuthorized":true,"bluetoothEnabled":true,"fontSizeScaleFactor":1,"deviceOrientation":"portrait","phoneCalendarAuthorized":false,"notificationSoundAuthorized":true,"locationAuthorized":true,"screenHeight":844,"system":"iOS 14.8.1","version":"8.0.18","windowHeight":753,"fontSizeSetting":17,"statusBarHeight":47,"locationReducedAccuracy":false,"pixelRatio":3,"windowWidth":390,"notificationBadgeAuthorized":true,"notificationAuthorized":true,"model":"iPhone 12<iPhone13,2>","batteryLevel":73,"locationEnabled":true,"screenWidth":390,"screenTop":91,"microphoneAuthorized":true,"albumAuthorized":true,"cameraAuthorized":true,"notificationAlertAuthorized":true,"brand":"iPhone","platform":"ios","SDKVersion":"2.23.4","enableDebug":false,"devicePixelRatio":3,"host":{"env":"WeChat","appId":"","version":402657855},"mode":"default"}[图片]
2022-10-12IOS需要加入services参数,如下: wx.getConnectedBluetoothDevices({ services: ['FFFA'], success (res) { console.log(res) } })
wx.getConnectedBluetoothDevices(Object object) 返回空问题描述:wx.getConnectedBluetoothDevices返回的devices始终是空,services尝试各种参数都不行,问题发生在小米11青春版手机上,苹果手机可以正常获取,微信日志已上传,微信号:eciot_mo , 手机同时连接了2个蓝牙键盘,希望在小程序中,通过wx.getConnectedBluetoothDevices获取到这个蓝牙设备,然后通过自定义服务来通讯,苹果手机已实现功能,安卓手机始终获取不到设备,是否可以获取所有已连接蓝牙设备,不用services过滤,非常感谢。
2022-10-12IOS需要加入services参数,如下: wx.getConnectedBluetoothDevices({ services: ['FFFA'], success (res) { console.log(res) } })
wx.getConnectedBluetoothDevices在IOS上获取的devices是空?蓝牙连接成功之后,也可以响应数据了,但在IOS上调用wx.getConnectedBluetoothDevices获取的devices是空? 微信版本: 7.0.12 手机型号: iPhone 6 plus 软件版本: 12.4.5
2022-10-12IOS需要加入services参数,如下: wx.getConnectedBluetoothDevices({ services: ['FFFA'], success (res) { console.log(res) } })
wx.getConnectedBluetoothDevices在IOS上获取的devices是空?api: wx.getConnectedBluetoothDevices 微信版本:7.0.9 蓝牙已经连接,在Android上有返回值,IOS上没有
2022-10-12