Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1397 Posts: 7500
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 76 Posts: 337
I'm running MQTT example, which is already implemented the published from sensors on XDK.
On my application, a personal computer publishes on a Topic of the broker.
The XDK must subscribe this topic, and based on the value, take an action.
How can I access the Sub data from a topic, using the XDK Api? What is the specific function that returns the value from the subscription? Must I write this one?
I'm getting some problems with that.
Thank you for your answer, Mr. Stjepandic.
Yes! I asked about SendDataOverMQTT example. I have not found the subscription payloas, because i was developing with version 3.3 from Workbench.
With the actual version, I got some problems to flash the code on XDK.
I've fixed the problem.
But I have realized that the function is a callback AppMQTTSubscribeCB for the incoming publish. Am I wrong?
I need to make a sub on a topic, take an action with the subscribed data, i can't publish on the same topic after, because it is beeing populated by other device.
Do we have any implemented on example any function to do that ?