Mosquitto  
Suche: 

Kinder

Informatik und Computer

Elektronik

Segeln

Musik

Lego

Kochen

4x4 Wohnmobil

4x4 Wohnmobil V2.0

Andere Basteleien

Linksammlung

Projekte

Merkzettel

Impressum


User
Password

Mosquitto

Getting startet

The Broker

Create a directory for mosquitto files.

Create mosquitto.conf (example here)

docker run -it -p 1883:1883 -p 9001:9001 -v $BASEDIR/mosquitto.conf:/mosquitto/config/mosquitto.conf -v $BASEDIR/data:/mosquitto/data -v  $BASEDIR/log:/mosquitto/log eclipse-mosquitto

Use simple client (Ubuntu package: mosquitto-clients)

Send a message:

mosquitto_pub -h servername-or-ip -m "testasfdfds" -t temp/temp

Subscribe

mosquitto_sub -h servername-or-ip -t temp/temp

"+" can be used as a wildcard for a single level of hierarchy

"#" can be used as a wildcard for all remaining levels of hierarchy

More

https://mosquitto.org/man/mqtt-7.html