Skip to content

Conversation

@embhorn
Copy link
Member

@embhorn embhorn commented Nov 25, 2025

Add an fflush after the message has been been printed

Fixes #446

@embhorn embhorn self-assigned this Nov 25, 2025
@embhorn embhorn changed the title Add fflush to mqtt-sub exmaple Add fflush to mqtt-sub example Nov 25, 2025
@embhorn embhorn requested a review from Copilot November 25, 2025 13:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds fflush(stdout) to the mqtt-sub example to ensure immediate output flushing after printing received MQTT messages, addressing issue #446.

Key Changes

  • Added fflush(stdout) call after message payload printing in the message callback function
  • Ensures output is immediately visible, particularly useful when stdout is buffered or redirected

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@embhorn embhorn mentioned this pull request Nov 25, 2025
@dgarske dgarske merged commit 273601b into wolfSSL:master Dec 1, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flush stdout in mqtt-sub

3 participants