A django module that allows to connect and publish messages to AWS IoT
Project description
Django AWS IoT
A django module that allows to connect and publish messages to AWS IoT
Installation
Install using pip:
pip install django-aws-iot
Extend django settings:
AWS_IOT_ENABLED = True
AWS_IOT_SERVER = "server.amazonaws.com"
AWS_IOT_CLIENT_ID = "Thing-Name"
AWS_IOT_CERT_PATH = "/certificates/8a6a6cfdf1-certificate.pem.crt"
AWS_IOT_KEY_PATH = "/certificates/8a6a6cfdf1-private.pem.key"
AWS_IOT_ROOT_CERT_PATH = "/certificates/AmazonRootCA1.pem"
Usage
Currently the library only supports publishing messages to AWS IoT:
from django_aws_iot.aws_iot import mqtt_publish
mqtt_publish(
'topic/123',
{
'foo': 'bar'
}
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-aws-iot-1.0.1.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for django_aws_iot-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30dd0f3de1f0f4e3664ebce8440b3cb6cd955272a1df3c671d70f06b7472adf6 |
|
MD5 | 937d3a401033a8b8519816cfc497e643 |
|
BLAKE2b-256 | e2d74e17cc87b94ab8266c7705f0e1b09ddd678805f3fe08dc00ac680d718c0f |