Commit message

This commit is contained in:
sdt.tutorial 2024-04-30 16:24:44 +09:00
parent 90fd872969
commit d06cf0e59e
2 changed files with 6 additions and 6 deletions

View File

@ -8,5 +8,5 @@ spec:
package: requirements.txt # 설치할 Python 패키지 정보 파일입니다.(기본 값은 requirement.txt 입니다.)
runtime: python3.9
stackbase:
tagName: v1.0.1 # Stackbase(gitea)에 릴리즈 태그명 입니다.
tagName: v1.0.2 # Stackbase(gitea)에 릴리즈 태그명 입니다.
repoName: mat-plus-app # Stackbase(gitea)에 저장될 저장소 이릅니다.

10
main.py
View File

@ -1,11 +1,11 @@
#import sdtcloudpubsub
import sdtcloudpubsub
import time
import uuid
import string
import random
#sdtcloud = sdtcloudpubsub.sdtcloudpubsub()
#sdtcloud.setClient(f"device-app-{uuid.uuid1()}") # parameter is client ID(string)
sdtcloud = sdtcloudpubsub.sdtcloudpubsub()
sdtcloud.setClient(f"device-app-{uuid.uuid1()}") # parameter is client ID(string)
def runAction():
input_pressure = random.randint(1,3)
@ -102,8 +102,8 @@ def runAction():
"input3_str" : characters3 # (10)string
}
}
#sdtcloud.pubMessage(msg)
print(msg)
sdtcloud.pubMessage(msg)
#print(msg)
time.sleep(2)
if __name__ == "__main__":