Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Why was this using mqtt5 publish completion contract? (#632)
Co-authored-by: Bret Ambrose <[email protected]>
Co-authored-by: Steve Kim <[email protected]>
  • Loading branch information
3 people authored and hikeya committed Aug 6, 2025
commit a0154897fd53fc2351c14b574acc29fb5291ce64
2 changes: 1 addition & 1 deletion samples/basic_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def on_publish(topic, payload, dup, qos, retain, **kwargs):
messageJson = json.dumps(message)
pub_future, _ = mqtt_connection.publish(cmdData.input_topic, messageJson, QoS.AT_LEAST_ONCE)
publish_completion_data = pub_future.result()
print('Published topic {}: {} (puback reason: {})\n'.format(cmdData.input_topic, messageJson, repr(publish_completion_data.puback.reason_code)))
print('Successfully published to topic {} with payload `{}`\n'.format(cmdData.input_topic, messageJson))

loop_count += 1
time.sleep(1)