# 对时、心跳等
[TOC]
## 1、数据结构体
| 标签名 | 作用 | 类型|
| --- | --- | --- |
| schema| 路由 |system、app、web |
| data| 数据(不必填) | array|
| time| 时间戳 | |
## 2、对时 服务器回复
路由:`dev/Timing`
```
{
"schema": "system/Timing",
"time": ""
}
```
## 3、心跳 服务器回复
路由:`dev/Jumping`
```
{
"schema":"system/Jumping",
"time":""
}
```
## 4、异常回复 服务器回复
| data | 作用 | 类型|
| --- | --- | --- |
| msg| 信息 | |
| code| 状态码 | |
路由:`dev/Error`
```
{
"schema": "system/Error",
"data": {
"msg": "",
"code": ""
},
"time": ""
}
```
## 5、固件升级 只支持单个设备升级,不支持网关与子设备一起升级
| data | 作用 | 类型|
| --- | --- | --- |
| NodeType| 设备或网关 | dev、net |
| deviceID|设备id/sn码 | |
| version| 下发版本 | |
| geturl| 下发数据包链接| |
路由:`dev/upgrade`
```
{
"schema": "system/upgrade",
"data": {
"type": "",
"dev_id": "",
"version": "",
"geturl": ""
},
"time": ""
}
```