From 370d851500ff90e3cab6154babe4f46ed9e55d25 Mon Sep 17 00:00:00 2001 From: "support.sampyo" Date: Fri, 24 May 2024 05:17:25 +0000 Subject: [PATCH] Commit message --- framework.yaml | 2 +- main.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/framework.yaml b/framework.yaml index 816664b..e59de20 100644 --- a/framework.yaml +++ b/framework.yaml @@ -7,5 +7,5 @@ spec: virtualEnv: base # 사용할 가상환경 이름입니다. package: requirements.txt # 설치할 Python 패키지 정보 파일입니다.(기본 값은 requirement.txt 입니다.) stackbase: - tagName: v0.0.24 # Stackbase(gitea)에 릴리즈 태그명 입니다. + tagName: v0.0.25 # Stackbase(gitea)에 릴리즈 태그명 입니다. repoName: sampyo-dio # Stackbase(gitea)에 저장될 저장소 이릅니다. diff --git a/main.py b/main.py index 5faee6e..3253523 100644 --- a/main.py +++ b/main.py @@ -79,6 +79,8 @@ def Set_Zero(client): client.write_coil(1, 1) def Command_Read(): + global client + with open('./control.json', 'r') as f: cmd = json.load(f) @@ -318,7 +320,7 @@ def handle_client(conn, ip, port): # print("Closing the connection") def start_server(addr, port): - host = addr # "25.7.57.1" + host = addr # "172.17.16.201" port = port # 5000 soc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)