IBeaconInfo里的accuracy和proximity的疑问
两个问题:
扫描蓝牙信标返回的数据里accuracy(距离)字段是怎么算出来的,是根据rssi吗?有没有考虑信号衰减曲线?
proximity字段文档描述是(表示设备距离的枚举值),这是什么意思?
1 回复
The accuracy of the proximity value, measured in meters from the beacon
应该是 iOS 系统根据一定公式计算出来的,是有考虑信号衰减曲线的
proximity 枚举值如下,应该仅供参考而已,因为安卓平台是没有的
/*
* CLProximity
*
* Discussion:
* Represents the current proximity of an entity.
*
*/
typedef NS_ENUM(NSInteger, CLProximity) {
CLProximityUnknown,
CLProximityImmediate,
CLProximityNear,
CLProximityFar
} API_AVAILABLE(ios(7.0)) API_UNAVAILABLE(watchos, tvos);