For explaining my demand, I use the "chat room" example
https://www.b4x.com/android/forum/threads/b4x-mqtt-chat-room.61568/
The broker is NOT the broker of the sample but the standard broker from
https://www.b4x.com/android/forum/threads/mqttbroker.61548/
The broker runs on a Raspberry with jMQTTBroker v2 library
If I launch 2 "chat" programs on my Windows PC, they exchange correctly (messages sent on topic "all")
But if I add a Publish2 command to a specific Topic in the Send subroutine of one chat :
Note that every chat programs have subscribed to "all/#" which means it should receive all messages.
What is wrong ?
https://www.b4x.com/android/forum/threads/b4x-mqtt-chat-room.61568/
The broker is NOT the broker of the sample but the standard broker from
https://www.b4x.com/android/forum/threads/mqttbroker.61548/
The broker runs on a Raspberry with jMQTTBroker v2 library
If I launch 2 "chat" programs on my Windows PC, they exchange correctly (messages sent on topic "all")
But if I add a Publish2 command to a specific Topic in the Send subroutine of one chat :
the second chat reveives the message sent on "all" but it never receives the message sent on "MySpecificTopic".client.Publish2("all", CreateMessage(Body), 0, False)
client.Publish2("MySpecficTopic", CreateMessage(Body), 0, False)
Note that every chat programs have subscribed to "all/#" which means it should receive all messages.
What is wrong ?