mirror of
https://gitee.com/qpy-solutions/dtu.git
synced 2025-05-20 03:28:25 +08:00
2.将所有py文件中的'改为" 3.将透传模式从modbus中分成单独文件through_mode 4.将uart中从串口和云端接收数据处理的函数重新命名 5.将command.py文件改为command_mode.py文件、将modbus.py文件改为modbus_mode.py文件
67 lines
1.3 KiB
JSON
67 lines
1.3 KiB
JSON
{
|
|
"plate": 1,
|
|
"password": "123",
|
|
"conf": {
|
|
"1": {
|
|
"protocol": "aliyun",
|
|
"type": "mos",
|
|
"keepAlive": "",
|
|
"clientID": "0",
|
|
"Devicename": "dtu_device1",
|
|
"ProductKey": "gzsi5zT5fH3",
|
|
"DeviceSecret": "173f006cab770615346978583ac430c0",
|
|
"ProductSecret": "D07Ujh1RvKAs6KEY",
|
|
"cleanSession": "0",
|
|
"qos": "1",
|
|
"subscribe": {"0": "/gzsi5zT5fH3/dtu_device1/user/get"},
|
|
"publish": {"0": "/gzsi5zT5fH3/dtu_device1/user/update", "1": "/gzsi5zT5fH3/dtu_device1/user/update2"},
|
|
"serialID": 2
|
|
}
|
|
},
|
|
"reg": 0,
|
|
"convert": 0,
|
|
"version": 100,
|
|
"nolog": 0,
|
|
"message": {},
|
|
"uconf": {
|
|
"2": {
|
|
"baudrate": "115200",
|
|
"databits": "8",
|
|
"parity": "0",
|
|
"stopbits": "1",
|
|
"flowctl": "0"
|
|
}
|
|
},
|
|
"fota": 1,
|
|
"pins": [
|
|
"1",
|
|
"2",
|
|
"3"
|
|
],
|
|
"direction_pin": {},
|
|
"apn": [
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"service_acquire": 0,
|
|
"work_mode": "modbus",
|
|
"auto_connect": 1,
|
|
"offline_storage": false,
|
|
"modbus":{
|
|
"groups":[
|
|
{
|
|
"device_type": "temp_humid_sensor",
|
|
"device_model": "TH10S-B",
|
|
"slave_address":["0x01"]
|
|
},
|
|
{
|
|
"device_type": "light_sensor",
|
|
"device_model": "YGC-BG-M",
|
|
"slave_address":["0x02", "0x03"]
|
|
}
|
|
]
|
|
}
|
|
|
|
}
|