jzoric / mqtt_demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:HTML 36.2%Language:Java 27.9%Language:JavaScript 27.4%Language:Python 7.5%Language:CSS 1.0%