eclipse-paho / paho.mqtt.golang

Other
2.77k stars 534 forks source link

AddRoute function How to catch the message? #610

Closed heliping closed 2 years ago

heliping commented 2 years ago

The AddRoute how to get the message and callback?

client.AddRoute(topic, CallbackHandler)

MattBrittan commented 2 years ago

You earlier made the same comment on a closed issue and I said:

If you have a question then please see the readme for info on where to ask. If you do decide to raise a new issue then you will need to provide significantly more detail than this issue contains (and don't assume that readers have any knowledge of how the Java SDK works). Please ensure that you read the documentation and look at the examples before raising an issue.

It's not currently clear what you are asking (the example I pointed you towards provides an example of how to use AddRoute so I'm not really sure what I can add to that).

The readme states "if you have a general question please see the resources in the more information section for help". As such I'm going to close this question; please take a look at the example I provided (and the other examples) and if you have further questions raise them at one of the suggested places (but ensure you provide enough detail to allow someone to answer).