Skip to content

dexterlu/mosquitto-python-examples

Repository files navigation

README

This document describes the source code for the Paho MQTT python client library.

MQTT

The MQTT protocol is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol.

Installation

sudo apt-get install python-stdeb
sudo apt install python-pip
sudo pip install paho-mqtt

Usage

Here is very simple example

Publisher

  • edit the publisher.py
  • modify the hostname to your pc's ip address
  • execute the publisher.py on terminal
$ python publisher.py

Subscriber

  • execute the subscriber.py on another terminal
$ python subscriber.py

Example runing on dexter_1101HA eeepc

publisher_dexter_1101HA.py
subscriber_dexter_1101HA.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages