Android与IOS小程序接受ibeacon广播数据不一致?
uuids: [ "E2C56DB5-DFFB-48D2-B060-D0F5A71096E0" , "E2C56DB5-DFFB-48D2-B060-D0F5A71096E1" , "E2C56DB5-DFFB-48D2-B060-D0F5A71096E2" , "E2C56DB5-DFFB-48D2-B060-D0F5A71096E3" ], success: function (res) { console.log(res.errMsg); wx.onBeaconUpdate( function (res) { //监听 iBeacon 设备的更新事件 //console.info(res.beacons.length); //封装请求数据 var beacons = res.beacons; var reqContent = {}; var bleArray = []; var times = []; for ( var i = 0; i < beacons.length; i++) { var bleObj = {}; bleObj.distance = beacons[i].accuracy; bleObj.uuid = beacons[i].uuid.substr(34,2); //uuids bleObj.rssi = beacons[i].rssi; //bleObj.mac = beacons[i].major + ":" + beacons[i].minor; bleObj.major = beacons[i].major; bleObj.minor = beacons[i].minor; //bleArray.push(bleObj); bleArray.push(bleObj.rssi); bleArray.push(bleObj.uuid); } //获取当前时间戳 var timestamp = ( new Date()).valueOf(); timestamp = timestamp / 1000; bleArray.push(timestamp.toString()); reqContent.ble = bleArray; //封装beacons数据 //reqContent = bleArray[0].rssi;//封装rssi console.info( '下面是初始数据.' ) console.log(reqContent);}) |
小程序在接受来自ibeacon广播数据时,安卓接收的速率1秒10条数据,速度与ibeacon设备设置的基本一致。手机型号是坚果pro1;
但是ios打开小程序接收速率非常慢,1秒一条,ibeacon广播的速率快与慢,ios始终都是1秒一条。求官方解答,或者小伙伴有类似情况吗