7 years ago.

MQTTclient callback function not working properly in subscribe

I have published the topic with the ibm watson but when i am passing the callback funtion in the subscribe function , it is not being called and the replies from the watson can not be filtered. Basically the Topic-filter is not working. Please someone give a solution. with regards Ayush.

1 Answer

7 years ago.

Ayush,

Can you please post some code snippets or provide more context regarding your source code?

There is a MQTT guide located here that covers creating a MQTT client and server, as well as details on MQTT brokers. Make sure your code looks similar to the example program, and if you still have problems, report back with some more detailed code snippets.