Skip to content

Conversation

@andresmanelli
Copy link

Description of changes

The shadow name parameter was added to every function that needed that information in order to create the correct topic.
A NULL value falls back to the Classic Shadow topics.

Note: I know the interface is changed with this PR, so I am not sure if it can be integrated in the code base as-is, so please let me know if the changes aren't aligned with the contributing guidelines or if there is something I could improve.

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

@dan4thewin
Copy link
Contributor

Hi, @andresmanelli . Thank you for the PR. The changes do alter existing API calls, so that would require people using the library to update their code even if they don't use named shadows. One way to make these kind of changes without breaking existing code is to add new functions with slightly different names, then change the old API functions to call the new ones.

The shadow library is actively undergoing refactoring, so this version will have no new features, only bug fixes. You can see the new code in this PR: #1081 . Your feedback would be welcome. The next iteration of the C SDK is on the development branch: https://github.com/aws/aws-iot-device-sdk-embedded-C/tree/development . Please join in the fun.

@dan4thewin dan4thewin closed this Jul 30, 2020
@andresmanelli andresmanelli deleted the named_shadows_aws branch July 30, 2020 08:46
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