20240623
8. [openapi.py] 增加心跳检测函数,并开启线程执行;取消在该文件中生成实例 9. [aio.py] 完成detect_network,并在main函数开启线程 10. 将templates文件夹移动到assets内
This commit is contained in:
5
aio/assets/templates/controller.heart.json
Normal file
5
aio/assets/templates/controller.heart.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"id": "xxxxxxxxxxx",
|
||||
"module": "system",
|
||||
"command": "controller.heart"
|
||||
}
|
5
aio/assets/templates/device.get_params.json
Normal file
5
aio/assets/templates/device.get_params.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"id": "xxxxxxxxxxx",
|
||||
"module": "system",
|
||||
"command": "device.get_params"
|
||||
}
|
1
aio/assets/templates/heartbeat
Normal file
1
aio/assets/templates/heartbeat
Normal file
@ -0,0 +1 @@
|
||||
0
|
5
aio/assets/templates/state.get_state.json
Normal file
5
aio/assets/templates/state.get_state.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"id": "xxxxxxxxxxx",
|
||||
"module": "system",
|
||||
"command": "state.get_state"
|
||||
}
|
5
aio/assets/templates/state.get_tp_mode.json
Normal file
5
aio/assets/templates/state.get_tp_mode.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"id": "xxxxxxxxxxx",
|
||||
"module": "system",
|
||||
"command": "state.get_tp_mode"
|
||||
}
|
8
aio/assets/templates/state.set_tp_mode.json
Normal file
8
aio/assets/templates/state.set_tp_mode.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"id": "xxxxxxxxxxx",
|
||||
"module": "system",
|
||||
"command": "state.set_tp_mode",
|
||||
"data": {
|
||||
"tp_mode": "with"
|
||||
}
|
||||
}
|
5
aio/assets/templates/state.switch_auto.json
Normal file
5
aio/assets/templates/state.switch_auto.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"id": "xxxxxxxxxxx",
|
||||
"module": "system",
|
||||
"command": "state.switch_auto"
|
||||
}
|
5
aio/assets/templates/state.switch_manual.json
Normal file
5
aio/assets/templates/state.switch_manual.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"id": "xxxxxxxxxxx",
|
||||
"module": "system",
|
||||
"command": "state.switch_manual"
|
||||
}
|
5
aio/assets/templates/state.switch_motor_off.json
Normal file
5
aio/assets/templates/state.switch_motor_off.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"id": "xxxxxxxxxxx",
|
||||
"module": "system",
|
||||
"command": "state.switch_motor_off"
|
||||
}
|
5
aio/assets/templates/state.switch_motor_on.json
Normal file
5
aio/assets/templates/state.switch_motor_on.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"id": "xxxxxxxxxxx",
|
||||
"module": "system",
|
||||
"command": "state.switch_motor_on"
|
||||
}
|
Reference in New Issue
Block a user