Android Question MQTT multiple chat

postasat

Active Member
Licensed User
Hi,
is it possible to use in the same wifi network two or more chat (with autodiscovery function) completely separated ?

Chat1 ---> Server1 Clientx Clienty Clientz
Chat2 ---> Server2 Clienta Clientb Clientc
Chat1 ---> Server3 Client1 Client2 Client3

Thank you.
 

postasat

Active Member
Licensed User
Hi,
how can I be sure that clientx clienty clientz connect and exchange message only with server1 and clienta, clientb, clientc exchange message only with server2 and so for other chat ?
Autodiscovery connect automatically the client with ?

Thank you.
 
Upvote 0

coslad

Well-Known Member
Licensed User
You have to set 3 different topic and subscrive each device only to the right topic .

example :

topic 'Chat1' have to subscrive those devices : Server1 Clientx Clienty Clientz
 
Upvote 0

postasat

Active Member
Licensed User
Hi,
when a client try a connection to a specific server and in the same net there are two or more server, changing topic is enough to choose which server to connect to ?
The clients will connect to all server in the net or only with the last discovered server recorded when launching connect ?
How can I choose which server to connect ?

Thank you.
 
Last edited:
Upvote 0
Top