Skip to content

onBeaconUpdate

描述

监听 Beacon 设备更新事件,仅能注册一个监听。

网页应用需要完成鉴权后调用该接口。
注意事项:需要先调用startBeaconDiscovery。

支持说明

客户端平台WPS协作版本要求
iOS>=5.25.0
Android>=5.25.0

输入

名称数据类型是否必填描述
onChangeany
onErrorany

输出

名称类型描述
beaconsarray<object>Beacon 设备列表。
∟ accuracynumber精度。
∟ majornumberBeacon 设备的主 id。
∟ minornumberBeacon 设备的次 id。
∟ proximitynumber表示设备距离的枚举值。可能值:0:无效 1:非常近 2:近 3:远
∟ rssinumber信号强度。
∟ uuidstringBeacon 设备广播的 uuid。

错误码

参考:公共错误码