diff --git a/main.py b/main.py index a688449..35fb529 100644 --- a/main.py +++ b/main.py @@ -17,9 +17,11 @@ with open(f'/usr/local/sdt/app/{args.config}/config.yaml', encoding='UTF-8') as # mqttc = mqtt.Client() # puclisher 이름 # 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'./text.txt', 'w') while True: - print(f"Config value: {yamlData['topic']}") + f.write(f"Config value: {yamlData['topic']} \n") + # print(f"Config value: {yamlData['topic']}") # dataList = [] # for n in range(10): # data = { diff --git a/text.txt b/text.txt new file mode 100644 index 0000000..e16f8e7 --- /dev/null +++ b/text.txt @@ -0,0 +1 @@ +TEST!!!