From d06cf0e59e02ce56364c9382373cb343d6527f87 Mon Sep 17 00:00:00 2001 From: "sdt.tutorial" Date: Tue, 30 Apr 2024 16:24:44 +0900 Subject: [PATCH] Commit message --- framework.yaml | 2 +- main.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/framework.yaml b/framework.yaml index 4f7f255..412d384 100644 --- a/framework.yaml +++ b/framework.yaml @@ -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)에 저장될 저장소 이릅니다. diff --git a/main.py b/main.py index 546a4c7..dae7543 100644 --- a/main.py +++ b/main.py @@ -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__":