# startMonitoringForRegion ^6.3
打开或者关闭电子围栏
# 请求参数
Prop | Type | Required | Default | Description |
---|---|---|---|---|
param | Object | Y | {} 属性: enable: {Type: Number, Default: N/A, Description: 1 打开电子围栏 / 2 关闭电子围栏} longitude: {Type: String, Default: N/A, Description: 经度 } latitude: {Type: String, Default: N/A, Description: 纬度 } sceneld: {Type: String, Default: N/A, Description: 场景ID } deviceld: {Type: String, Default: N/A, Description: 设备ID } tempRadius: {Type: String, Default: N/A, Description: 温度圈半径 } homegroupId: {Type: String, Default: N/A, Description: 家庭id } type: {Type: Number, Default: 1 ,Description: 1 空调(AI智能舒适优化) / 2 家电(家电忘关)} executeType: {Type: Number, Default: 1 ,Description: 1 出圈执行 / 2 进圈执行(默认进出圈都执行)} | 请求参数 |
# 接口调用示例
this.$bridge
.startMonitoringForRegion(param)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# 返回参数
- 失败时返回
Prop | Type | Default | Description |
---|---|---|---|
errorCode | Number | N/A | -1 创建围栏失败 |