- MQTT.pptx
- mkdir build
- cd build
- cmake ..
- make
- subscribe: ./mqtt-sub
- publish: ./mqtt-pub
- subscribe: python3 client_sub.py
- publish: python3 client_pub.py
- sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
- sudo apt upgrade
- sudo apt install mosquitto
- sudo cp mosquitto.conf /etc/mosquitto/mosquitto.conf
- sudo cp certs/server.crt /etc/mosquitto/certs/server.crt
- sudo cp certs/server.key /etc/mosquitto/certs/server.key
- sudo systemctl start mosquitto
-
Ubuntu 22.04.1 LTS
-
sudo apt install libwebsockets-dev
-
sudo apt install libcjson-dev
-
sudo apt install xsltproc
-
sudo apt install docbook-xsl
-
git clone -b v2.0.15 https://github.com/eclipse/mosquitto.git
-
cd mosquitto
-
mkdir build
-
cmake -DWITH_WEBSOCKETS=ON ..
-
cd build
-
make -j16
-
cd src
-
./mosquitto -c /PATH_TO/mosquitto.conf -v