MQTT

Uit WaaaghPedia

Install

CentOS 7

sudo yum -y install mosquitto

Raspberry PI

wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key
sudo apt-key add mosquitto-repo.gpg.key
cd /etc/apt/sources.list.d/

Then one of the following, depending on which version of debian you are using: cat /etc/debian_version

  • 7 = Wheezy
  • 8 = Jessie
sudo wget http://repo.mosquitto.org/debian/mosquitto-wheezy.list
sudo wget http://repo.mosquitto.org/debian/mosquitto-jessie.list
sudo apt-get update
sudo apt-get install mosquitto mosquitto-clients

Werking

Lees MQTT Server

mosquitto_sub -h localhost -t "#"

-h: Server

-t: Topic

Post naar MQTT Server

mosquitto_pub -h localhost -t testTopic -m "Hello world!"

-h: Server

-t: Topic

-m: Bericht

Tools

MQTT Spy

https://github.com/eclipse/paho.mqtt-spy/wiki/Downloads

Bron

https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-centos-7

http://test.mosquitto.org/

https://arduinodiy.wordpress.com/2017/11/24/mqtt-for-beginners/

https://www.wire-kit.nl/category/tutorials/beginner/

https://www.domoticz.com/wiki/MQTT

https://www.google.com/search?rlz=1CDGOYI_enNL591NL591&hl=nl&ei=UBssXKTlGNHOwQLhqJvgCA&q=mqtt+broker+domoticz&oq=mqtt+broker+&gs_l=mobile-gws-wiz-serp.1.1.0l2j0i67j0j0i67.31824.31824..33315...0.0..0.57.57.1......0....1.........0i71.NaA8i_0fIKU

https://iot.stackexchange.com/questions/3482/mosquitto-sub-command-not-found

https://randomnerdtutorials.com/