From af5d932441136fb2e1ece05113dc32f2a4e019f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=EC=9D=B4=EC=88=98=EC=A4=80?= <june@june-2.local>
Date: Thu, 12 Oct 2023 09:59:45 +0900
Subject: [PATCH] FIX: fix test code

---
 main.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/main.py b/main.py
index 281f1b4..6bda0d0 100644
--- a/main.py
+++ b/main.py
@@ -18,10 +18,8 @@ with open(f'/usr/local/sdt/app/{args.config}/config.yaml', encoding='UTF-8') as
 # mqttc.username_pw_set("sdt", "251327")
 # mqttc.connect("13.209.39.139", 32259)
 # f = open(f'/usr/local/sdt/app/{args.config}/text.txt')
-f = open(f'/home/sdt-dev1/text.txt', 'w')
 while True:
-    f.write(f"Config value: {yamlData['topic']}\n")
-    # print(f"Config value: {yamlData['topic']}")
+    print(f"Config value: {yamlData['topic']}", flush=True)
     # dataList = []
     # for n in range(10):
     #     data = {
@@ -39,4 +37,3 @@ while True:
     #     "data": dataList    
     # })
     # mqttc.publish(f"/device-test/{yamlData['topic']}", datas) # topic, message
-f.close()
\ No newline at end of file