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.
37 Comments
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.
Tomi Engdahl says:
How to Install and Secure the Mosquitto MQTT Messaging Broker on Debian 8
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-debian-8
Tomi Engdahl says:
How to setup a Mosquitto MQTT Server and receive data from OwnTracks
https://www.digitalocean.com/community/questions/how-to-setup-a-mosquitto-mqtt-server-and-receive-data-from-owntracks
Tomi Engdahl says:
Attacking MQTT systems with Mosquittos (scalability and load testing utilities for MQTT environments)
https://github.com/remakeelectric/mqtt-malaria
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.
Tomi Engdahl says:
http://http.kali.org/kali/pool/main/m/mqtt-client/
Tomi Engdahl says:
How to run MQTT using MQTT.FX and mosquitto broker on linux
https://www.youtube.com/watch?v=Y3c6z_4V1IE
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.
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.
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
Tomi Engdahl says:
https://www.hackster.io/robin-cole/data-logging-zero-to-hero-with-circuitpython-and-mqtt-05af61
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.
Tomi Engdahl says:
MQTT Deep Dive
https://hackaday.com/2019/07/25/mqtt-deep-dive/
https://www.ably.io/concepts/mqtt
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!
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
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
Tomi Engdahl says:
https://hackaday.com/2021/03/07/give-your-smart-home-a-green-thumb-with-mqtt/
Tomi Engdahl says:
GIVE YOUR SMART HOME A GREEN THUMB WITH MQTT
https://hackaday.com/2021/03/07/give-your-smart-home-a-green-thumb-with-mqtt/
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
Tomi Engdahl says:
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-centos-7
Tomi Engdahl says:
What is MQTT and How It Works
https://www.youtube.com/watch?v=EIxdz-2rhLs
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.
Tomi Engdahl says:
https://www.ev3dev.org/docs/tutorials/sending-and-receiving-messages-with-mqtt/
Tomi Engdahl says:
http://www.steves-internet-guide.com/mosquitto_pub-sub-clients/
Tomi Engdahl says:
https://unix.stackexchange.com/questions/188525/how-to-subscribe-a-bash-script-as-a-mqtt-client/592163
Shell Script to subscribe to MQTT and execute a callback
https://gist.github.com/David-Lor/63fb0be80b67359c8de6230c6b1dafa2
Tomi Engdahl says:
https://mosquitto.org/
Tomi Engdahl says:
http://mqtt-explorer.com/
Tomi Engdahl says:
http://www.steves-internet-guide.com/install-mosquitto-linux/
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.
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
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.
Tomi Engdahl says:
Automated Window Blinds Using MQTT And Home Assistant
https://hackaday.com/2021/09/26/automated-window-blinds-using-mqtt-and-home-assistant/
Finnish software engineer [Toni] is on a quest to modernize his 1991 house, and his latest project was to automate the window blinds and control them using Home Assistant. Unless your blinds have built-in motors, most of the effort of such a project centers around how to integrate and attach the motor — and as [Toni] points out, there are tons of different blinds with all kinds of operating mechanisms. But once you solve that issue, half the battle is over.
These particular blinds require less than one turn of the control rod to go from fully open to fully closed, and [Toni] selects a 270-degree range-of-motion, 20 kg*cm torque servo motor to drive them. He really wanted to install the motor inside the window, but it just wouldn’t fit. Instead, each servo motor is mounted in a custom 3D-printed case installed on the window frame just below the operating rod. An ESP8266-based controller box is installed above the window, hidden behind curtains, and operates all three servos.
https://www.creatingsmarthome.com/index.php/2021/09/01/guide-diy-smart-window-blinds-to-home-assistant/
Tomi Engdahl says:
https://hackaday.com/2022/03/13/remote-mqtt-temperature-sensor-shows-how-its-done/
Tomi Engdahl says:
https://hackaday.io/project/186946-heos-mqtt-translation
Tomi says:
How to hack IoT devices from your couch
https://embeddedcomputing.com/technology/security/how-to-hack-iot-devices-from-your-couch
MQTT is, by default, not secure, and many MQTT deployments seem to have missed the fine print when it comes to using MQTT securely. So let’s exploit it.
Tomi says:
Exploiting MQTT Using Lua
Want to learn how to exploit MQTT using Lua? I hope not. But maybe you want to learn how to protect yourself again the exploit… not a bad idea to start from the inside out.
Wilfred Nilsen user avatar by Wilfred Nilsen
·
Jan. 09, 17 · Tutorial
https://dzone.com/articles/exploiting-mqtt-using-lua
Tomi Engdahl says:
What is MQTT Protocol ? How it works ? | 2022
https://www.youtube.com/watch?v=NXyf7tVsi10