Update main.py
This commit is contained in:
parent
11cdf13d0d
commit
1619406606
4
main.py
4
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__":
|
||||
|
|
Loading…
Reference in New Issue