A sample Python client for AWS IoT Core.
- Set up the IoT infrastructure using the companion Terraform repository.
- Create, activate, and set up Python a virtual environment:
P.S. The requirement versions were validated with Python 3.10.
python -m venv env source ./env/bin/activate pip install -r requirements.txt - Run the script of your choice as follows.
Simulates a thermometer sending temperature values to the IoT Core endpoint.
python publish.py <ENDPOINT> \
<CERTIFICATE-PATH> <PRIVATE-KEY-PATH> \
simulated-thermometer-<dev|staging|prod>Please make sure to take a moment and read the Code of Conduct.
Please report bugs and suggest features via the GitHub Issues.
Before opening an issue, search the tracker for possible duplicates. If you find a duplicate, please add a comment saying that you encountered the problem as well.
Please make sure to read the Contributing Guide before making a pull request.