Compare commits

..

No commits in common. "main" and "v1.0.5" have entirely different histories.
main ... v1.0.5

1 changed files with 3 additions and 3 deletions

View File

@ -25,9 +25,9 @@ def main():
while True: while True:
data = extract_data(items[index]) data = extract_data(items[index])
if data: if data:
# msg = json.dumps(data, ensure_ascii=False, default=str) msg = json.dumps(data, ensure_ascii=False, default=str)
sdtcloudMqttClient.pubMessage(data) sdtcloudMqttClient.pubMessage(msg)
print(f"{time.strftime('%Y-%m-%d %H:%M:%S')} Extracted data:{data}") print(f"{time.strftime('%Y-%m-%d %H:%M:%S')} Extracted data:{msg}")
else: else:
print("No 'data' key found in the JSON item.") print("No 'data' key found in the JSON item.")