Made python SDK more of a library #3
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I had the need for the IoT python SDK to be more a library I could use in a different manner. Not wanting to completely start from scratch I migrated the mqtt client into an executable that the MCU calls and a library that the executable uses. Part of this is moving all of the certs/lib/bin into /opt/aws-iot instead of putting the files in /root. This should also make the python lib more portable across different linux distros/systems. I also rewrote the scripts that setup the Yun and copy the files over to make the process easier to automate for multiple boards and hopefully easier to maintain for the long term. Give the changes a look and let me know what you think. I have not yet updated the Readme.md to reflect the setup changes but plan to do so when I get some free time.