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秒一条。
求官方解答,或者小伙伴有类似情况吗