update
This commit is contained in:
parent
d19903e199
commit
7bd8a8bcb6
|
@ -24,9 +24,7 @@ class DataUploadClient:
|
|||
self.client.on_disconnect = self.on_disconnect
|
||||
|
||||
def on_connect(self, client, userdata, flags, rc):
|
||||
global times
|
||||
times = 6
|
||||
client.publish('success', payload='连接成功,执行数据推送和本地存储' + str(time.time()), qos=0)
|
||||
self.client.publish('success', payload='连接成功,执行数据推送和本地存储' + str(time.time()), qos=0)
|
||||
subprocess.Popen(['/usr/bin/bash /home/pi/lot_manager/bash/start_data_upload.sh'], shell=True)
|
||||
|
||||
def on_disconnect(self, client, userdata, rc):
|
||||
|
|
Loading…
Reference in New Issue