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:
data = extract_data(items[index])
if data:
# msg = json.dumps(data, ensure_ascii=False, default=str)
sdtcloudMqttClient.pubMessage(data)
print(f"{time.strftime('%Y-%m-%d %H:%M:%S')} Extracted data:{data}")
msg = json.dumps(data, ensure_ascii=False, default=str)
sdtcloudMqttClient.pubMessage(msg)
print(f"{time.strftime('%Y-%m-%d %H:%M:%S')} Extracted data:{msg}")
else:
print("No 'data' key found in the JSON item.")