test
This commit is contained in:
parent
5387def012
commit
fa3363e478
4
ceshi.py
4
ceshi.py
|
@ -394,7 +394,7 @@ class UPLOAD:
|
|||
def on_connect(self, client, userdata, flags, rc):
|
||||
from threading import Thread
|
||||
if rc == 0:
|
||||
print("连接成功,执行数据推送和本地存储")
|
||||
# print("连接成功,执行数据推送和本地存储")
|
||||
nt1 = Thread(target=self.t1)
|
||||
nt1.start()
|
||||
else:
|
||||
|
@ -402,7 +402,7 @@ class UPLOAD:
|
|||
self.times -= 1
|
||||
client.reconnect()
|
||||
else:
|
||||
print("3次失败,执行本地存储")
|
||||
# print("3次失败,执行本地存储")
|
||||
nt2 = Thread(target=self.t2)
|
||||
nt2.start()
|
||||
|
||||
|
|
Loading…
Reference in New Issue