-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding publish and subscribe atomic client examples #347
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great. Should there be a new test script for the pub-sub clients?
589efee
to
8032ff2
Compare
I hadn't considered this. These are really just subsets of the mqttclient example. They could be used for testing against the protocol. |
8032ff2
to
73e8273
Compare
Fixed executable names in .gitignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good and tests out. I notice these aren't being used yet. Are you planning to add some additional scripts to test using these?
Yes, that is the intention, to better enable functional testing using these clients. |
New examples in
examples/pub-sub
These can be used for quickly testing MQTT application or scripting.
By default, they connect to localhost. Specify a topic with
-n
./examples/pub-sub/mqtt-sub -n '#'
./examples/pub-sub/mqtt-pub -n test -m "Hello world!"
Enable verbose example debug with
-d