Skip to content

Pub sub sample split #296

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

Merged
merged 17 commits into from
Apr 1, 2022
Merged

Pub sub sample split #296

merged 17 commits into from
Apr 1, 2022

Conversation

TwistedTwigleg
Copy link
Contributor

Description of changes:

Splits the pub-sub sample down into multiple smaller samples that connect using a single method, rather than having one large pub-sub sample that can connect with multiple methods. This makes it easier for users to see how to connect using each method. Comments were added to show when the pub-sub part of the samples begin, to make it easier to separate the connection part from the pub-sub part.

Also adds helper functions to the CommandLineUtils function for making a MQTT connection without needing to manually set it up, removing the MQTT connection code duplication across samples and instead allowing them to focus on showing the key feature of the sample.

Note: This PR builds on top of the command line simplification PR: #278


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Simplifies command line parsing and ensures naming consistency between
samples and the other AWS IoT SDKs.
Fixes the backwards compatibility issues the tests were having when
trying to run on the CI.
* Added PubSub sample back to codebuild tests
* Simplified connection samples by using utility functions in command_line_utils
* Removed PKCS11 PubSub sample (since it's replaced by PKCS11 connect sample)
* Added PKCS11 connection builder function to command_line_utils
Also adjusted the README accordingly and fixed the connect samples using the wrong titles.
@TwistedTwigleg
Copy link
Contributor Author

Thanks for the review! Merging into main...

@TwistedTwigleg TwistedTwigleg merged commit e56d3e8 into main Apr 1, 2022
@TwistedTwigleg TwistedTwigleg deleted the PubSubSampleSplit branch April 1, 2022 20:51
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.

2 participants