docs: 更新字段
- 更新数据库schema和文档,增加insert_card和bright_g字段支持 - 同步更新heartbeatProcessor.js和databaseManager.js以支持新字段
This commit is contained in:
@@ -39,6 +39,8 @@
|
||||
| extra | object | {"source":"gw","ver":"1.2.3"} | 扩展字段:原文、版本等其他自定义字段 |
|
||||
| electricity | array<object> | [{"address":"add11","voltage":3.2,...}] | 电力设备数组(按原始顺序拆列落库为数组列) |
|
||||
| air_conditioner | array<object> | [{"address":"ac1","state":1,...}] | 空调设备数组(按原始顺序拆列落库为数组列) |
|
||||
| insert_card | number/int | 1 | 是否插卡(整数,可为空) |
|
||||
| bright_g | number/int | 80 | 全局亮度值(整数,可为空) |
|
||||
|
||||
## 4. JSON 示例
|
||||
```json
|
||||
@@ -56,6 +58,8 @@
|
||||
"carbon_state": 0,
|
||||
"device_count": 1,
|
||||
"comm_seq": 7,
|
||||
"insert_card": 1,
|
||||
"bright_g": 80,
|
||||
"electricity": [
|
||||
{
|
||||
"address": "add11",
|
||||
|
||||
Reference in New Issue
Block a user