Compare commits

..

No commits in common. "main" and "v1.0.1" have entirely different histories.
main ... v1.0.1

2 changed files with 6 additions and 6 deletions

View File

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

10
main.py
View File

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