Update main.py

This commit is contained in:
1708639776959.sdtroot 2024-05-21 06:22:04 +00:00
parent 11cdf13d0d
commit 1619406606
1 changed files with 2 additions and 2 deletions

View File

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