Skip to content
/ MQTT Public

A Python MQTT client for Mosquito, AWS and Azure

License

Notifications You must be signed in to change notification settings

cushenst/MQTT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MQTT Sample Script

A simple MQTT client using python for Mosquitto and AWS and Azure

Installation

Using pip3
pip3 install -r requirements.txt

Usage

To subscribe to everything please use # (eg. stephen/#)

Mosquitto

Subscriber

python3 mosquittoSubscriber.py $TOPIC $QOS

Publisher

python3 mosquittoPublisher.py $TOPIC $QOS $PAYLOAD

AWS

Subscriber

python3 awsSubscriber.py $CA_PATH $CERT_PATH $PRIVATEKEY_PATH $ENDPOINT $TOPIC $QOS

Publisher

python3 awsPublisher.py $CA_PATH $CERT_PATH $PRIVATEKEY_PATH $ENDPOINT $TOPIC $QOS $PAYLOAD

Azure

Device

Sender
python3 azureDeviceSender.py $CERT_PATH $PRIVATEKEY_PATH $ENDPOINT $DEVICE_ID $TOPIC
Receiver
python3 azureDeviceReceiver.py $CERT_PATH $PRIVATEKEY_PATH $ENDPOINT $DEVICE_ID

Cloud

Sender
python3 azureCloudSender.py $ENDPOINT_STRING $DEVICE_ID
Receiver
python3 azureCloudReceiver.py $ENDPOINT_STRING $NUMBER_OF_PARTITION $DEVICE_ID (optional)

About

A Python MQTT client for Mosquito, AWS and Azure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages