Other Parts Discussed in Thread: C2000WARE
Hello there,
I'm looking into setting up an MQTT client on an F28388D Controlcard using NDK + NS libraries. Is there an example of the use of the MQTT API?
Thanks and kind regards,
Arjan
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello there,
I'm looking into setting up an MQTT client on an F28388D Controlcard using NDK + NS libraries. Is there an example of the use of the MQTT API?
Thanks and kind regards,
Arjan
Hi Arjan,
We Currently don't provide an MQTT based example but we do provide tcpEcho example based on NDK + NS stack which can be used as your starting point. The example is located at C2000Ware_3_03_00_00\libraries\communications\Ethernet\ti\ndk\examples\tcpEchoF2838X in C2000Ware.
You may also want to look at a web server based example using lwIP stack located at
C2000Ware_3_04_00_00\libraries\communications\Ethernet\third_party\lwip\examples\enet_lwip\cm .
Each example has a readme.txt which might be helpful for you to get started.
Thanks,
Yashwant
Hi Yashwant,
I have already had a look at tcpEcho and enet_lwip as part of the research into which TCP/IP stack would be best to use for our purpose. Next step in the NDK+NS evaluation was to use one of the NS libs, especially MQTT because we plan to use that protocol. There is some documentation, but it consists mainly of very brief doxygen generated descriptions of structs and functions, no real information about how these functions work together. Like which events to expect in the callback function and how to handle them, and should I call MQTTClient_run() periodically or only once, etc.
So I was really hoping for an example (maybe other forum members?). The lib must have been tested in an application at some point, right?
For now I think it's better if we focus on lwIP with Paho MQTT as it seems to have a wider user base, with more implementations/examples.
Kind regards,
Arjan
Currently there are no plans to validate MQTT on NDK. Hence it might be a better option for you to explore the lwIP with Paho MQTT.
Regards,
Yashwant