1.0
spaceId
[resource/params.spaceId]
type
设备类型代码
position
设备位置坐标 {x:123,y:234,z:{region:'wall',offset:1.5}}
31
remark
描述
name
设备实例名称
deviceId
设备id
uuid(false)
1
action
添加操作
device
poc
1
deviceId
=deviceId
spaceId
=spaceId
type
=type
name
=name
position
=JSON.stringify(position)
remark
=remark
state
='1'
{deviceId:deviceId}
2
0
添加设备
2021-6-8 15:50
1
调用操作返回的数据示例:
{
"code": 1, //成功为1,失败-1
"datas": {
"action": { //action为提交操作名称,即target指定的操作名
"deviceId": "3ef304f70b4f422285235af029fbff4a" //新增的设备id
}
}
}
2021-6-9 9:56
0