wiki:mosquitto_ex

Mosquitto sub/pub

We sub and put in queue then create thread to read the queue mosq_feed_ex.py

Test with for loop in bash

[krit@mini Mqtt]$ for i in {1..10}; do mosquitto_pub -h mq1.mycompany.com -u userName -P mypassword -t "/mycompany/ActDAS/test" -m "{\"id\": $i}"; done
Last modified 3 years ago Last modified on 09/07/21 02:52:46

Attachments (1)

Download all attachments as: .zip