We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c27ede commit 21b6427Copy full SHA for 21b6427
1 file changed
types/wechat-miniprogram/lib.wx.api.d.ts
@@ -257,6 +257,17 @@ declare namespace WechatMiniprogram {
257
/** 缩略图路径,若留空则使用视频首帧 */
258
thumbPath?: string;
259
}
260
+ /** 以 beacon 设备形式广播的参数 */
261
+ interface BeaconObj {
262
+ /** Beacon 设备广播的 UUID */
263
+ uuid: string;
264
+ /** Beacon 设备的主 ID */
265
+ major: number;
266
+ /** Beacon 设备的次 ID */
267
+ minor: number;
268
+ /** 用于判断距离设备 1 米时 RSSI 大小的参考值 */
269
+ measuredPower?: number;
270
+ }
271
/** 广播自定义参数 */
272
interface AdvertiseReqObj {
273
/** 当前Service是否可连接 */
@@ -267,6 +278,8 @@ declare namespace WechatMiniprogram {
278
manufacturerData?: ManufacturerData[];
279
/** 要广播的serviceUuid列表 */
280
serviceUuids?: string[];
281
282
+ beacon?: BeaconObj;
283
284
/** animationData */
285
interface AnimationExportResult {
0 commit comments