From f4710f929d5096d98d79a3e20f74348cc8354475 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Sat, 2 Dec 2023 11:35:05 +0800 Subject: [PATCH] mqtt --- ceshi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ceshi.py b/ceshi.py index e005838..d2c5ca0 100644 --- a/ceshi.py +++ b/ceshi.py @@ -407,8 +407,9 @@ class UPLOAD: run_no_client() 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__': up = UPLOAD()