Deploying an MQTT broker on Android?

I see a lot of questions about deploying an MQTT broker on Android asking their purpose and ultimately getting voted on. Isn't it a good idea to run a broker over the phone so that IoT devices can talk directly to the phone without going through some kind of cloud server? Otherwise, how else could the devices talk to the phone offline? Yes, of course, the phone must be within range, of course. Will the phone be in hotspot mode?

+3


source to share


2 answers


There must be a major reason why the Broker is embedded in the mobile client and not the server.

The rationale is that you have a broker running on the server, then multiple mobile clients exchange messages, connecting to the Broker and posting and subscribing to certain topics in the server brokers.



Client x (Mobile) <-msgs-> Broker (Server) <-msgs-> Client y (Mobile)

0


source


There are possibilities with a broker running on Android, as with Android things (IoT for Android),

I made an app - https://play.google.com/store/apps/details?id=server.com.mqtt&hl=en



People use it in their projects without problems

0


source







All Articles