Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 312 Bytes

mosquitto.md

File metadata and controls

13 lines (7 loc) · 312 Bytes

Mosquitto

Very nice IOT messaging protocol.

How to publish and subscribe to mqtt messages:

Publish

mosquitto_pub -h <host-ip> -p <host-port> -u <username> -P <password> -t <topic> -m '<message>'

Subscribe

mosquitto_sub -h <host-ip> -p <host-port> -u <username> -P <password> -t <topic>