Skip to content

Commit

Permalink
#225 log publish result & update QoS comment
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickjaigner committed Jul 15, 2024
1 parent bb7a76a commit 43100b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/threads/thingsboard_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ def main(headless: bool = False) -> None:
}

try:
# Sending telemetry without checking the delivery status (QoS0)
client.send_telemetry(telemetry_with_ts)
# Sending telemetry without checking the delivery status (QoS1)
result = client.send_telemetry(telemetry_with_ts)
logger.info(f"Published with result: {result}")
except Exception as e:
logger.exception(e)
logger.info("Failed to publish last telemetry data.")
Expand Down

0 comments on commit 43100b7

Please sign in to comment.