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.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for django_aws_iot-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6fb25a4b1834acb89332d83465555783b5fae755a5eb02ddb9da670ffbd70f7 |
|
MD5 | 3f12d97ac093116d392012d5cb4f5919 |
|
BLAKE2b-256 | e8b3a8c3d68a1c92cd5fda765aee44bce5bbac08725ea62797f79b6a2d4360ce |