Skip to content

A minimalistic approach to use AWS IoT in Django

License

Notifications You must be signed in to change notification settings

anx-mfischer/django-aws-iot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Install using pip:

pip install git+https://github.com/nezhar/django-aws-iot@main

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'
    }
)

About

A minimalistic approach to use AWS IoT in Django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%