Using MQTT to send and receive data for your next project | Opensource.com

https://opensource.com/article/18/6/mqtt

This article introduces you to MQTT protocol widely used in IoT.
MQTT is a publish/subscribe (pubsub) wire protocol designed with small devices in mind. Pubsub systems work like a message bus. You send a message to a topic, and any software with a subscription for that topic gets a copy of your message. As a sender you just provide your information to a set of topics and listen for any other topics you might care about.

31 Comments

  1. Tomi Engdahl says:

    Hacking the IoT with MQTT
    In this post i will talk about the MQTT protocol and some security concerns related to it.
    https://morphuslabs.com/hacking-the-iot-with-mqtt-8edaf0d07b9b?gi=b05d7046aa84

    MQTT official note about security (from mqtt.org):

    You can pass a user name and password with an MQTT packet in V3.1 of the protocol. Encryption across the network can be handled with SSL, independently of the MQTT protocol itself (it is worth noting that SSL is not the lightest of protocols, and does add significant network overhead). Additional security can be added by an application encrypting data that it sends and receives, but this is not something built-in to the protocol, in order to keep it simple and lightweight.

    Clients can authenticate to the MQTT Broker sending a user name and password with the CONNECT packet.

    Reply
  2. Tomi Engdahl says:

    Attacking MQTT systems with Mosquittos (scalability and load testing utilities for MQTT environments)
    https://github.com/remakeelectric/mqtt-malaria

    Reply
  3. Tomi Engdahl says:

    How to Install The Mosquitto MQTT Broker on Windows
    http://www.steves-internet-guide.com/install-mosquitto-broker/

    In this tutorial you will learn how to install the mosquitto MQTT broker (server) on Windows.

    How to Install The Mosquitto MQTT Broker on Linux (Ubuntu)
    http://www.steves-internet-guide.com/install-mosquitto-linux/

    In this tutorial we will look at how you install and run the mosquitto MQTT broker on a Linux server running Ubuntu.

    We will look at installing Mosquitto on a local server running Ubuntu LInux and also an AWS linux server instance (cloud server) also running Ubuntu Linux.

    Reply
  4. Tomi Engdahl says:

    How to run MQTT using MQTT.FX and mosquitto broker on linux
    https://www.youtube.com/watch?v=Y3c6z_4V1IE

    Reply
  5. Tomi Engdahl says:

    How To Install mosquitto On Kali Linux 2017.1
    http://installion.co.uk/kali/kali/main/m/mosquitto/install/index.html

    sudo apt-get install mosquitto

    Which will install mosquitto and any other packages on which it depends.

    Reply
  6. Tomi Engdahl says:

    MQTT’s role as an IoT message transport
    https://www.controleng.com/articles/mqtts-role-as-an-iot-message-transport/

    Messaging queuing telemetry transport’s (MQTT) role as an Internet of Things (IoT) message transport derives from its simple design, when it began as an industrial communicator for a pipeline supervisory control and data acquisition (SCADA) system.

    The genesis of MQTT

    Adoption of MQTT by Facebook, cloud service providers, and many others in the information technology (IT) space might lead one to think that MQTT was invented targeting IT solutions, but the genesis of MQTT was driven by an industrial communication problem.

    In 1997, Phillips 66 had installed one of the first transmission control protocol/internet protocol (TCP/IP)-based very-small-aperture-terminal (VSAT) systems in the market for use in its pipeline supervisory control and data acquisition (SCADA) system. Numerous challenges needed to be addressed to use this network infrastructure effectively. Poll/response protocols were the norm for any SCADA system implementation until this system was implemented.

    Reply
  7. Tomi Engdahl says:

    Really Understanding MQTT
    https://blog.paessler.com/really-understanding-mqtt

    MQTT is as sexy as it sounds. It’s an open OASIS and ISO standard lightweight, publish-subscribe network protocol that transports messages between devices. The protocol usually runs over TCP/IP – however, any network protocol that provides ordered, bi-

    https://youtu.be/QSwR-JMmNOo

    Reply
  8. Tomi Engdahl says:

    Mike Szczys Takes Back Control of His Wemo Lightswitch with MQTT, Python and a Raspberry Pi
    Sick of the proprietary software, Szczys took an afternoon to build a more flexible alternative using open source software.
    https://www.hackster.io/news/mike-szczys-takes-back-control-of-his-wemo-lightswitch-with-mqtt-python-and-a-raspberry-pi-2bf21546b308?6aaba9a124857622930ca4e50f5afed2

    Mike Szczys has published the code for a build which replaces the proprietary back-end of an Internet of Things (IoT) lighting control system with an open source alternative based on MQTT and Python running on a Raspberry Pi.

    Reply
  9. Tomi Engdahl says:

    Use this MKR1000 telemetry system to connect your vehicle to the Internet and view data in real-time.

    MQTT OBD Vehicle Telemetry © GPL3+
    https://create.arduino.cc/projecthub/jassak/mqtt-obd-vehicle-telemetry-f120c4

    Fancy to see your’s vehicle data online in real-time? If so, continue reading!

    Reply
  10. Tomi Engdahl says:

    How to Connect Your nRF9160 Feather to MQTT
    In this post, I’ll show you how to connect the nRF9160 Feather to a self-hosted Mosquitto instance
    https://www.hackster.io/news/how-to-connect-your-nrf9160-feather-to-mqtt-71a2d2e5be8c

    Reply
  11. Tomi Engdahl says:

    Modernize electronic flow measurement with MQTT
    MQTT is a publish/subscribe, extremely simple and lightweight messaging protocol
    https://www.controleng.com/articles/modernize-electronic-flow-measurement-with-mqtt/?oly_enc_id=0462E3054934E2U

    Reply
  12. Tomi Engdahl says:

    [Solved] Attempting MQTT connection… Failed. rc=-1 or rc=-2 or rc=-4, try again in 5 seconds
    https://www.youtube.com/watch?v=CbodTTk-D18&feature=youtu.be

    Reply
  13. Tomi Engdahl says:

    Install mosquitto
    on CentOS
    https://snapcraft.io/install/mosquitto/centos

    Eclipse Mosquitto MQTT broker

    This is a message broker that supports version 5.0, 3.1.1, and 3.1 of the MQTT protocol. MQTT provides a method of carrying out messaging using a publish/subscribe model. It is lightweight, both in terms of bandwidth usage and ease of implementation. This makes it particularly useful at the edge of the network where a sensor or other simple device may be implemented using an arduino for example.

    Reply
  14. Tomi Engdahl says:

    Ben Parmeter’s “Smarter” Whole House Fan Control System Builds on an ESP8266 in 3D-Printed Mounts
    https://www.hackster.io/news/ben-parmeter-s-smarter-whole-house-fan-control-system-builds-on-an-esp8266-in-3d-printed-mounts-b9afc5c38eb7

    Offering local and remote control through web, MQTT, and REST API interfaces, this low-cost fan controller project packs in the features.

    Reply
  15. Tomi Engdahl says:

    Washing Machine Phone Notification
    This device detects the end of cycle wash and publishes a message via MQTT.
    https://www.hackster.io/news/washing-machine-phone-notification-97e01af686f4

    1

    Reply
  16. Tomi Engdahl says:

    MQTT Thermal Printer “Fax”
    https://www.hackster.io/news/mqtt-thermal-printer-fax-2fed09d38871

    Make Fun Stuff created a DIY printer to send his wife notes from anywhere using an ESP8266, an Arduino Nano and MQTT — plus a “magic” quill.

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked *

*

*