Mosquitto | ||||||
|
MosquittoGetting startetThe BrokerCreate 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 Subscribemosquitto_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 |