Import coreMQTT to Tiva

Thank you All, @Rahul & @Gaurav

I am now intended to move the coreMQTT to my Tiva platform, ideally together with FreeRTOS-Plus-TCP stack, but don’t know where to start. I have a simple Ethernet based freeRTOS application running which use TI lwip stack, is it possible to interface coreMQTT with it? I see lots of dependency files from this demo, try to figure out minimal required file will be a big job, also, if possible, probably better to use FreeRTOS_Plus_TCP stack? which i might need some help to use this instead of Ti lwip.

Any suggestions will be quite helpful please.
Regards!
Ping

Great. Maybe the configuration of the broker was not set right. Could you please follow the instructions here for running the plaintext demo using a locally hosted broker. In brief, you can make a new configuration file, myconfig.conf as follows:

listener 1883
allow_anonymous true

and run the local mosquitto broker locally using this custom config as follows:
mosquitto -v -c <path/to/config/file>

Let us know if there are any issues even after this.

Hi, DakshitBabbar
Tried and it works, thank you, and it seems more repeatable.

I am going to get familiar with this and will need to move it to Tiva embedded platform.
Regards!
Ping

Yes, you can use coreMQTT with LWIP. You’ll need to write a transport interface implementation for LWIP.

Hello, Gaurav
Thanks for reply, I looked at the link and also the demo file, cannot find the recv/send function body, only see the porotype defines. am I missing something ? Don’t think I know where to start.

Another question, is it possible that I can import the project to another location, so I know which files are included in the solution, also avoid to modify original files by accident.

Regards!
Ping

Found the function body Plaintext_FreeRTOS_send/recv, it is in transport_plaintext.c, i guess I need to modify it for lwip, which I am not sure which one is.
Ping

Yes, that is correct. You need to write one for LWIP. As LWIP supports sockets API, you can refer to the following transport implementation - aws-iot-device-sdk-embedded-C/platform/posix/transport/src/plaintext_posix.c at main · aws/aws-iot-device-sdk-embedded-C · GitHub.