# 服务下发
[TOC]
## 1、数据结构体
| 标签名 | 作用 | 类型|
| --- | --- | --- |
| schema | 路由 | system、app、web |
| data |属性 |array |
| time | 时间戳 | |
发送端:system系统自动发送,app手机端发送,web电脑端发送
| data | 作用 | 类型|
| --- | --- | --- |
|netInfo | 网关或者设备详情设置| |
|properties | 子设备属性下发| array|
| properties | 作用 | 类型|
| --- | --- | --- |
|sn | 子设备sn码| |
|info |属性 | |
## 2、网关+子设备属性设置
路由:`dev/propertySet`
```
{
"schema": "system/propertySet",
"data": {
"netInfo": {
"key": "value",
"key1": "value1"
},
"properties": [{
"sn": "",
"info": {
"key": "value",
"key1": "value1"
}
}, {
"sn": "",
"info": {
"key": "value",
"key1": "value1"
}
}]
},
"time": ""
}
```
## 3、服务下发 下发指令
路由:`dev/propertySet`
```
{
"schema": "system/services",
"data": {
"netInfo": {
"key": "value",
"key1": "value1"
},
"devices": [{
"sn": "",
"info": {
"key": "value",
"key1": "value1"
}
}, {
"sn": "",
"info": {
"key": "value",
"key1": "value1"
}
}]
},
"time": ""
}
```