Topic: Sending Data to AWS using TM4C129ENCPDT Controller

Hi,

I want to send data to Amazon AWS using Tiva Tm4c129encpdt controller & TI-RTOS via Ethernet.

I successfully added "wolfssl-3.9.6w" in my code and i am able to connect to HTTPS server. But now i required to send data to Amazon AWS.

what should i have to do next?

May i able to send data using "wolfssl-3.9.6w" through MQTT or i have to download "wolfMQTT v0.3" and repeat all steps again?

Is there any documents for wolfMQTT  for TI_RTOS?

For wolfssl "http://processors.wiki.ti.com/index.php … th_TI-RTOS" available which is very useful.


Regards,
Nimesh

Share

Re: Sending Data to AWS using TM4C129ENCPDT Controller

Hi Nimesh,

It sounds like you've already got past the most difficult part which is getting TLS running. Adding wolfMQTT on top is quite simple. You can download the latest source code for wolfMQTT v0.13 here:
https://github.com/wolfSSL/wolfMQTT

We have an example for using AWS in the 'examples/aws/awsiot.c` file. To enable TLS support build with the define `ENABLE_MQTT_TLS` set. You may need to change the `examples/mqttnet.c` to use TI-RTOS compatible network calls.

Let me know if you have any issues or questions.

Thanks,
David Garske, wolfSSL

Share

3 (edited by Nimesh 2017-09-28 03:42:00)

Re: Sending Data to AWS using TM4C129ENCPDT Controller

Hi David,

Thanks For The Reply.

As per your Reply wolfMQTT will work on top of wolfssl. I have already added wolfssl and downloaded wolfMQTT But still i have some query and dont know what is the actual process and from where should I start, There should be some document provide to add wolfMQTT.

Here is my query :
1. so May i have to compile wolfMQTT and than include it in my project?

2. If yes than is it same process as wolfssl?

3. After Adding wolffssl In my code there is less memory availble. I dont think i can include wolfMQTT also in my code. Is there any solution?

4. Is there any documents for wolfMQTT  for TI_RTOS?
For wolfssl "http://processors.wiki.ti.com/index.php … th_TI-RTOS" available which is very useful.


Regards,
Nimesh

Share

Re: Sending Data to AWS using TM4C129ENCPDT Controller

Hi Nimesh,

To include wolfMQTT into your project you can either include the sources directly or compile them as a static library. I would recommend doing it the same as you are doing with wolfSSL. Either way is supported.

The wolfMQTT library itself is very compact (only about 4 KB). The only RAM allocated is for the TX/RX buffer, which defaults to 1024 bytes, but can be reduced.

I don't have any documentation for using wolfMQTT with TI_RTOS, but if you've got it working with wolfSSL then it should be easy to add wolfMQTT. The wolfMQTT library has no RTOS dependencies besides the network callbacks in examples/mqttnet.c. You can use that file as a template for implementing the TI_RTOS network calls.

The best reference for TI_RTOS can be found here:
https://github.com/wolfSSL/wolfssl/tree/master/tirtos

Thanks,
David Garske, wolfSSL

Share

Re: Sending Data to AWS using TM4C129ENCPDT Controller

Hi David,

Sorry for late Reply. I had some High priority Project.

The best reference for TI_RTOS can be found here:
https://github.com/wolfSSL/wolfssl/tree/master/tirtos

I added wolfssl Library to my project using that document only.

I still not able to understand how to add wolfMQTT on top of wolfssl. i want to include wolfMQTT by complie it as static library.
There is no "product.mak" in wolfMQTT.


Regards,
Nimesh

Share

Re: Sending Data to AWS using TM4C129ENCPDT Controller

Hi Nimesh,

We have a really detailed guide here of building wolfSSL + TIRTOS into a static library: https://github.com/wolfSSL/wolfssl-exam … /README.md

To add the MQTT sources to the same build will require some custom modifications to the existing wolfssl.mak

If you contact Texas Instruments they can assist you with their build system and best practices to modify our existing solution to pull in new sources and any other questions pertaining to the Texas Instruments TIRTOS libraries.

Also if you need this solution quickly wolfSSL does offer traditional consulting services and can do the bring up of wolfSSL + wolfMQTT + TIRTOS for you, just let us know and we can get you in touch with one of our account managers to discuss time-lines and project goals.


Warmest Regards,

Kaleb