Monoista

Logo

View My GitHub Profile

18 July 2021

MQTT Client and Broker on Raspberry Pi

install Mosquitto Broker and Client

sudo apt install mosquitto mosquitto-clients

subscribe to a topic

mosquitto_sub -h localhost -t "mqtt/test"

publish to a topic

mosquitto_pub -h localhost -t "mqtt/test" -m "test"
tags: mqtt - raspberry-pi