mqtt
This commit is contained in:
parent
f4710f929d
commit
d9285b8405
4
ceshi.py
4
ceshi.py
|
@ -409,7 +409,9 @@ class UPLOAD:
|
||||||
def t1(self):
|
def t1(self):
|
||||||
# run_with_client(self.client)
|
# run_with_client(self.client)
|
||||||
while (1):
|
while (1):
|
||||||
self.client.publish('demo', 'test',qos=0)
|
self.client.publish('demo', 'test', qos=0)
|
||||||
|
time.sleep(60)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
up = UPLOAD()
|
up = UPLOAD()
|
||||||
|
|
Loading…
Reference in New Issue