update
This commit is contained in:
parent
f862b67c99
commit
28c28f6441
4
MQTT.py
4
MQTT.py
|
@ -4,7 +4,7 @@ import time
|
|||
|
||||
import paho.mqtt.client as mqtt
|
||||
|
||||
from tool import push_stream, close_stream, update, exec_sh, get_record, get_list_record, get_status
|
||||
from src.tool import push_stream, close_stream, update, exec_sh, get_record, get_list_record, get_status
|
||||
|
||||
|
||||
def on_connect(client, userdata, flags, rc):
|
||||
|
@ -69,8 +69,6 @@ def exec_shutdown():
|
|||
pass
|
||||
|
||||
|
||||
import os
|
||||
|
||||
if __name__ == '__main__':
|
||||
p = subprocess.Popen(['cat /home/pi/device_name'], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
out, err = p.communicate()
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue