This commit is contained in:
xyj 2023-12-02 11:35:05 +08:00
parent 8e25771055
commit f4710f929d
1 changed files with 3 additions and 2 deletions

View File

@ -407,8 +407,9 @@ class UPLOAD:
run_no_client() run_no_client()
def t1(self): def t1(self):
run_with_client(self.client) # run_with_client(self.client)
while (1):
self.client.publish('demo', 'test',qos=0)
if __name__ == '__main__': if __name__ == '__main__':
up = UPLOAD() up = UPLOAD()