Open apaly opened 4 years ago
It's a bit difficult to say what is going on here without more details, but common problems include only sending a SUBSCRIBE when you first start the application - instead send it in the on_connect callback. Also make sure you are not using the same client id for both clients, and that you are using one of mosquitto_loop_start()
and mosquitto_loop_forever()
.
If that doesn't help, you will need to provide a simplified version of your client so we can see what the details are.
Thanks for your reply.
After further check I realised that the messages from client B eventually gets to A, but it takes time from about 30 seconds. I tried your suggestions but the situation remains the same.
A simplified version of my client would be a bit difficult for me to provide because of the nature of my program.
Sorry, without some idea of what you are doing it's going to be extremely difficult to offer you any more suggestions.
Could you try and make a simple client that did the same subscribe flow but without the main part of your application instead?
Hello, I am having a big problem getting new messages using libmosquitto. The scenario is:
Can you provide help on what I am missing.
Thanks