Mosquitto

Mosquitto

Install server:

sudo apt install mosquitto

Install pub/sub clients:

sudo apt install mosquitto-clients


Subscribe:

mosquitto_sub -h localhost -p 1883 -t my-mqtt-topic

Publish:

mosquitto_pub -h localhost -p 1883 -t my-mqtt-topic -m "sample-msg-1"