Skip to content
Snippets Groups Projects
Select Git revision
0 results

esp8266-mqtt-client

  • Clone with SSH
  • Clone with HTTPS
  • Name Last commit Last update
    sketch
    README.md
    mqtt-client-broker-model.pkt

    CP2102 MQTT-Client

    Network topology

    For room 1041 we used

    • FritzBox from the server rack
    • Extra Fritz Box so we can configure WiFi and observe clients/traffic
    • Cables to connect administrators and clients
    • For visualization of the config see the packet tracer file ff68e296

    Tips & Tricks

    • You can set static IP's so you don't have to update the ip configuration for Client/Broker every time you restart them

    TODO [ ] Try configuring with devices not in the same Network

    Configuring ESP8266 (CP2102)

    Step 1:

    Install driver for CP2102 on our computer.

    • Download and Installer Driver from Silicon Labs
    • if the link above does not work, search on the website for CP210x Windows Drivers or google them
    • Extract the files, from there install CP210xVCPInstaller_x64.exe

    Adding ESP8266's libraries

    • Open Arduino IDE > File > Preferences > Additional board manager.
    • Add this link in the additional board manager and click OK to save changes. Link: https://arduino.esp8266.com/stable/package_esp8266com_index.json
    • Open Arduino IDE > Tools > Boards > Boards manager
    • Search for “esp8266 by ESP8266 Community”.
    • Select the latest version and install it.

    Configure the IDE to use the ESP board

    • In your Arduino IDE select board “NodeMCU 1.0 (ESP-12E Module)” and port (accordingly).
    • Select OK.

    Installing additional Libraries

    • Select Tools > Library Manager
    • Search and Install
      • ArduinoMqttClient
    • ESP8266Wifi should already be installed with the Boards IDE Tools

    Configuring MQTT Client

    We recommend you write your own sketch file for understanding Our example configuration will need adjustments to your environment