Linked IoT
  • Untitled
  • Languages
  • Linked IoT
    • allgemein
      • bestandteile
        • Sensor-Board-Node
        • Bridge
        • Gateway
      • ueberdasprojekt
        • Problems & challenges
    • dokumentation
      • bibliothek
      • sequenzdiagramm
      • bridge
      • WebInterface
      • Dependencies
      • Terminology:
      • Class diagram
    • Summary
    • tutorials
      • Installing Arduino
      • Installation STM-Board
      • Starting and running the Wifi-Manager
      • Installation und Establishing of ESP
  • Linked IoT
    • dokumentation
      • bridge
      • WebInterface
      • Terminologie:
      • Abhängigkeiten
      • sequenzdiagramm
      • bibliothek
      • Klassendiagramm
    • tutorials
      • Installation STM-Board
      • Wifi-Manager starten und ausführen
      • Installation und Einrichtung von ESP
      • Arduino installieren
    • allgemein
      • bestandteile
        • Bridge
        • Gateway
        • Sensor-Board-Node
      • ueberdasprojekt
        • Probleme & Herausforderungen
    • Summary
Powered by GitBook
On this page
  • Gateway
  • Bridge (ESP8266)
  • Installation of MQTT for the Arduino IDE
  1. Linked IoT
  2. dokumentation

bridge

PrevioussequenzdiagrammNextWebInterface

Last updated 6 years ago

Gateway

A Raspberry PI 3 Model B was used as gateway.

Hotspot for the Raspberry PI

A hotspot has to be configured so that no other networks are involved and the gateway is the MQTT-broker at the same time. The broker is receiving the data of the sensor.

The following picture is showing the instruction for the Raspberry PI's configuration of the hotspot:

MQTT for the Raspberry PI

A MQTT-broker is a good tool to collect the sensor's data and forward it to other applications. MQTT is very suitable for these tasks because it is a simple protocol which was designed for sensor-applications.

In our case we decided to use Mosquitto. The installation is just one command on the terminal of the Raspberry PI:

The Mosquitto-server should already be running and can be tested like this:

Now the subscriber should display the message "Hello Word, Mosquitto" on the display.

Bridge (ESP8266)

MQTT for the ESP8266

Installation of MQTT for the Arduino IDE

WIFI-Manager for the ESP 8266

Throughout the Wifi-Manager you can create an own hotspot and configure each WLAN, so that this module can also be configured by the user himself.

Installation of the Wifi-Manager for Arduino DIE

is a client based on Arduino, which gives us the possibility to send and retrieve messages to a specific topic.

Download the folder under and include the library in Arduino. Then you will get the possibility to install it in the Librarymanager.

The library for the Wifi-Manager can be found under . Download this folder and include it in the Arduino libraries just like the installation of MQTT: Sketch -> Include library -> Manage libraries... .

PubSubClient
https://github.com/knolleary/pubsubclient
https://github.com/tzapu/WiFiManager