# Device
设备信息
# 数据格式
| 字段名 | 类型 | 说明 |
|---|---|---|
| deviceKey | String | 设备唯一Key |
| productKey | String | 产品唯一eky |
| userKey | String | 用户唯一Key |
| sn | String | 设备序列号 |
| deviceName | String | 设备名称 |
| deviceType | String | 设备类型 |
| createProtocol | Integer | 链接协议 |
| deviceStatus | Integer | 设备状态 |
| descr | String | 设备描述信息 |
| createAck | String | 设备鉴权ACK |
| extendData | Object | 设备额外存储信息 |
| createAt | Long | 创建时间 |
| updateAt | Long | 更新时间 |
| geteway | Boolean | 是否是网关,true-网关,false-子设备 |
| gatewayKey | String | geteway为false时有值,标识子设备所属网关的deviceKey |
# 设备状态列表
| 状态值 | 说明 |
|---|---|
| 10 | 启用 |
| -10 | 禁用 |
# 链接协议类型
| 类型 | 说明 |
|---|---|
| 1 | http |
| 2 | mqtt |