0
votes

I am using 2 different MQTT Brokers(Mosquitto and EMQX). I am able to send messages between my mosquitto to EMQX and also EMQX to mosquitto using command prompt. I want to know if its possible to send files (png, pdf, xlsx, doc) between the two.

If yes, How?

1
You are asking multiple totally different questions here. Edit the question to ask just one and then ask a separate question for the otherhardillb
Edited the question. @hardillbRahul Chopra
A broker doesn't subscribe, you need two subscribers one to subscribe to each broker.SPlatten
Yeah. All I had meant was if its possible to send files from using the two?Rahul Chopra

1 Answers

0
votes

A file would just be another message (MQTT messages are just byte arrarys, they can hold ANYTHING)

If you want to have messages be published to subscribing clients on both brokers then you need to set up a bridge between the 2 brokers.

How you setup a bridge with Mosquitto is documented in the mosquitto.conf man page here.

The same details for EMQ X can be found here