FIX: fix test code

This commit is contained in:
이수준 2023-10-12 09:59:45 +09:00
parent 84f6d9341f
commit af5d932441
1 changed files with 1 additions and 4 deletions

View File

@ -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()