http请求方式: POST
https://iot-cloudapi.clife.cn/v5x/open/api/location/node
密钥类型:仅限项目密钥
| 参数名称 | 是否必须 | 字段类型 | 参数说明 |
|---|---|---|---|
| parentNodeCode | 否 | string | 父节点编码 |
| nodeCode | 否 | string | 节点编码 |
| nodeName | 否 | string | 节点名称 |
| status | 是 | number | 状态(0-无效,1-有效) |
正确的Json返回结果:
{
"data": {
"nodeCode": "116569f302714baca965592ba4cc1ddd"
},
"code": 0
}
| 字段名称 | 字段类型 | 字段说明 |
|---|
http请求方式: POST
https://iot-cloudapi.clife.cn/v5x/open/api/location/account/relate
密钥类型:仅限项目密钥
| 参数名称 | 是否必须 | 字段类型 | 参数说明 |
|---|---|---|---|
| nodeCode | 是 | string | 节点编码 |
| account | 是 | string | C端账号 |
| status | 是 | number | 状态(0-无效,1-有效) |
正确的Json返回结果:
{
"code": 0
}
| 字段名称 | 字段类型 | 字段说明 |
|---|
http请求方式: POST
https://iot-cloudapi.clife.cn/v5x/open/api/location/account/relate/list
密钥类型:仅限项目密钥
根据位置模型节点或者C端用户信息获取节点下的用户列表,节点nodeCode或C端用户account二选一必填
| 参数名称 | 是否必须 | 字段类型 | 参数说明 |
|---|---|---|---|
| nodeCode | 否 | string | 节点编码 |
| account | 否 | string | C端账号 |
正确的Json返回结果:
{
"data": {
"b8e7d2d4b37e4f5aa670ce5c0422b669",
"2890e1172f4d48ae98ac59aaab01db0e"
},
"code": 0
}
| 字段名称 | 字段类型 | 字段说明 |
|---|
http请求方式: POST
https://iot-cloudapi.clife.cn/v5x/open/api/location/device/list
密钥类型:仅支持项目密钥
根据位置模型节点获取节点下的设备列表
| 参数名称 | 是否必须 | 字段类型 | 参数说明 |
|---|---|---|---|
| nodeCode | 是 | string | 节点编码 |
| cascade | 否 | number | 是否支持节点级联,默认非级联,0:非级联;1:级联 |
| pageIndex | 否 | number | 当前页码,默认1 |
| pageRows | 否 | number | 每页数量,默认20 |
正确的Json返回结果:
{
"data": {
"list": [{
"devId":"2342432423423423432",
"physicalAddr":"xxxxxx",
"deviceName": "CC13653",
"createTime":"2015-06-11 06:00:03"
"activeTime":"2015-06-11 06:00:03"
"bindTime":"2015-06-11 06:00:03"
"productId": 114,
"routeDevId": "xxxxxx",
"routePhysicalAddr": "xxxxxx"
}],
"pager": {
"currPageRows": 1,
"defaultPageRows": 20,
"hasNextPage": false,
"hasPrevPage": false,
"pageEndRow": 9,
"pageIndex": 1,
"pageRows": 10,
"pageStartRow": 0,
"paged": false,
"totalPages": 1,
"totalRows": 1
}
},
"code": 0
}
| 字段名称 | 字段类型 | 字段说明 |
|---|---|---|
| devId | string | 设备唯一标识 |
| physicalAddr | string | 物理地址 |
| deviceName | string | 设备名称 |
| createTime | string | 创建时间 |
| activeTime | string | 激活时间 |
| bindTime | string | 绑定时间 |
| productId | number | 产品id |
| routeDevId | string | 子设备对应的网关设备id |
| routePhysicalAddr | string | 子设备对应的网关设备物理地址 |