test
This commit is contained in:
parent
66027be2b6
commit
fbeb89f71f
4
MQTT.py
4
MQTT.py
|
@ -2,7 +2,7 @@ import json
|
|||
|
||||
import paho.mqtt.client as mqtt
|
||||
|
||||
from tool import push_stream, close_stream, update, exec_sh, get_record
|
||||
from tool import push_stream, close_stream, update, exec_sh, get_record, get_list_record
|
||||
|
||||
|
||||
class MQTT:
|
||||
|
@ -29,6 +29,8 @@ class MQTT:
|
|||
# git更新项目和配置文件
|
||||
update()
|
||||
client.publish('success', payload='update success', qos=0)
|
||||
elif data == "record_list":
|
||||
get_list_record()
|
||||
elif data == "record":
|
||||
get_record(msg, self.client)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue