From 1619406606de506886e64cefbbf15e242afd9ec0 Mon Sep 17 00:00:00 2001 From: "1708639776959.sdtroot" Date: Tue, 21 May 2024 06:22:04 +0000 Subject: [PATCH] Update main.py --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 8792d52..98c65e5 100644 --- a/main.py +++ b/main.py @@ -5,7 +5,7 @@ import uuid # call sdtcloudpubsub sdtcloudMqttClient = sdtcloudpubsub.sdtcloudpubsub() -mqttClient = sdtcloudMqttClient.setClient(f"device-app-{uuid.uuid1()}") # parameter is client ID(string) +sdtcloudMqttClient.setClient(f"device-app-{uuid.uuid1()}") # parameter is client ID(string) # call sdtclouds3 sdtcloudS3Client = sdtclouds3.sdtclouds3() @@ -20,7 +20,7 @@ def runAction(): "message": "Hello World", "uploadFile": result } - sdtcloudMqttClient.pubMessage(mqttClient, msg) + sdtcloudMqttClient.pubMessage(msg) time.sleep(10) if __name__ == "__main__":