| 设备通讯关系 | ||||
|---|---|---|---|---|
| 接口描述 | 设备通讯关系 | |||
| 请求URL | https://api.solarmanpv.com/device/v1.0/communication | |||
| 请求方式 | post | |||
| 请求类型 | application/json | |||
| 返回类型 | / | |||
| 请求参数 | ||||
| 参数名 | 数据类型 | 参数类型 | 是否必填 | 描述说明 |
| language | string | query | N | 语言类型,示例值:zh |
| authorization | string | header | Y | accessToken,示例值:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9 |
| deviceId | integer | body | N | 设备在平台内的唯一标识 ,示例值:252525 |
| deviceSn | string | body | Y | 设备的唯一标识 ,示例值:12583SS |
| 响应参数 | ||||
| 参数名 | 数据类型 | 参数类型 | 是否必填 | 描述说明 |
| code | string | body | N | 信息码 ,示例值:10000 |
| communication | Object | body | N | 连接关系 |
| childList | array | body | N | 子设备 ,示例值:childList |
| deviceId | integer | body | N | 设备在平台内的唯一标识 ,示例值:252525 |
| deviceSn | string | body | Y | 设备的唯一标识 ,示例值:12583SS |
| deviceState | integer | body | N | 设备的当前状态。取值:1.在线 2.报警 3.离线 ,示例值:1 |
| deviceType | string | body | N | 设备类型 ,示例值:C0LLECTOR |
| parentSn | string | body | N | 父设备唯一标识 ,示例值:12583SS |
| timeZone | string | body | N | 设备时区 ,示例值:Asia/Shanghai |
| updateTime | integer | body | N | 设备最后一条数据的更新时间戳 ,示例值:1607583347 |
| msg | string | body | N | 信息描述 ,示例值:success |
| success | boolean | body | Y | 是否成功 ,示例值:true |
| requestId | string | body | Y | 请求标识 ,示例值:1d6f6eca9bee4b6483d4af064b659eec |
| 示例 | ||||
| 请求参数 | { “deviceId”: 288888888, “deviceSn”: “dev180000” } |
|||
| 返回值 | { “code”: null, “msg”: null, “success”: true, “requestId”: “2a3544de2f624a18869c0c8f12a1078e”, “communication”: { “deviceSn”: “180000”, “deviceId”: 299999999, “parentSn”: “180000”, “deviceType”: “COLLECTOR”, “deviceState”: 1, “updateTime”: 1608181709, “timeZone”: “America/Los_Angeles”, “childList”: [ { “deviceSn”: “dev180000”, “deviceId”: 288888888, “parentSn”: “180000”, “deviceType”: “INVERTER”, “deviceState”: 1, “updateTime”: 1608181709, “timeZone”: “America/Los_Angeles”, “childList”: null } ] } } |
