Publish multiple message

Hi, i’m using command line utility, it’s possible to publish multiple messages with the same command?

mqtt-cli.exe pub -h host -p post -l -s --cafile ca.crt -u user -pw password -t topic -m:file payload.txt -m:file payload_1.txt

otherwise there is some workaround, of couse i can perform several pub commands but it’s slow


Hello @d.delte ,

First off, welcome to the HiveMQ Community! We are always happy to see new members join the community.

The MQTT CLI tool does not currently support the ability to send or queue multiple messages with the same publish command to the same topic. That said, we do have the ability to publish a message to multiple topics with a single publish command, as specified in the further examples section of the MQTT CLI documentation, available here.

Let us know if there is any further assistance we can offer, and welcome once again to the HiveMQ Community!

Aaron from the HiveMQ Team