/mqtt_demo

Primary LanguageHTML

MQTT Demo

Demo examples used at Internet of Things - MQTT meetup presentation.

Idea

Use Raspberry Pi to send (publish) the DHT11 sensor data (temperature and humidity) to the broker. Create an MQTT client (subscribe) in JS and Java and read the data.

Raspberry Pi setup

Publisher is written in python but before running it you should install Adafruit and Paho libraries.

Hardware

  • Raspberry PI 2
  • Breadboard & 3 Jumper Wires
  • 1 x DHT11 sensor
  • 1 x 10K Resistor

How it looks like

Image 1

Image 2