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__":