Skip to content

Conversation

francdoc
Copy link

@francdoc francdoc commented May 17, 2024

This pull request includes some modifications to the Subscribe.c and Publish.c example files to make them runnable in my Linux machine. Thought this might be worth sharing.

The changes include:

  • Handling of non-blocking sockets.
  • Error checking and reporting.

I verified these changes by using Wireshark to capture and analyze the MQTT packets.

Maybe these modifications can help others run the examples and dive further into your MQTT library.

@francdoc francdoc changed the title Runnable examples Runnable examples Linux May 17, 2024
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.

1 participant