B4J Question [SOLVED]How Do I Make and Join topics from MQTT CHAT example and text is not compat with other MQTT Clients

Peter Lewis

Active Member
Licensed User
Longtime User
Hi All

I have been playing around the MQTT in B4J and found it very interesting.

I also downloaded MQTT.fx which allows me to easily create Topics and join them.

I have tried all different things on the example but all it seems to do is to one topic, Who to I make more ?

I am using the Mosquito Broker on one of my VPS's and the speed is great.


Now is i open up two Chat clients , they talk perfectly between each other (Still cannot find how to add Topics)

So I connected MQTT.fx to my Broker

now that can make topics and join them and the text is perfect. So I joined the /All topic and sent from the Chat example and I get garbage


x��`c``H2��+,ͬ�K�H,Q��M-.NLOe�0� �bϼ̒�Ĝ̪�vFF��S~J%�,���X��Z�Zdafj��@V�V���� d��X���'�


If you have any ideas for me , please let me know

1587074057919.png


I am fine reads like this in the MQTT.fx program
1587074158128.png



Thank you
 
Last edited:

Peter Lewis

Active Member
Licensed User
Longtime User
So it seems like there are 3 positions where I should put in a topic variable rather than using the standard /all.

First one is Subscribe , second one is Publish2 which there is another instance where the message is sent.
 
Upvote 0
Top