BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: Opportunities of implementing MQTT and their benefits  (Read 156 times)

Vladi

  • Newbie
  • *
  • Posts: 11
    • View Profile
Opportunities of implementing MQTT and their benefits
« on: June 03, 2020, 10:51:48 AM »

Hello guys,

I'm using the MM900EV3A Board with the FT900 microcontroller and I want to implement a MQTT communication between the board and my host computer.
Bridgetk provides an example for implementing MQTT with the lwIP library using freeRTOS.

My question is: What are the bebefits of implementing MQTT together with an RTOS?

During my research for MQTT implementations I found another very common way to implementing MQTT without lwIP and freeRTOS: Using the eclipse paho library for C.
My first impression is that it seems to be easier to implement a mqtt client with paho rather than with lwIP/freeRTOS.
But what is the disadvantage of using a "normal" mqtt library?

I hope you guys can help me understanding this :)
Logged

BRT Community

  • Administrator
  • Full Member
  • *****
  • Posts: 213
    • View Profile
Re: Opportunities of implementing MQTT and their benefits
« Reply #1 on: June 05, 2020, 04:32:17 PM »

Hello,

Here's some feedback from the author of BRT_AN_041 FT90x-MQTT-Application:

You would still need networking support and some form of low level OS.

mbed and FreeRTOS are providing much the same support.

mbed has support for Ethernet and other stuff but you’d have to port it to FT900.

The advantage is that we have already implemented FreeRTOS, lwIP and mbedTLS in that example.

Maybe other users in the community have more input?

Best Regards,

BRT Community
Logged

Vladi

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Opportunities of implementing MQTT and their benefits
« Reply #2 on: June 14, 2020, 12:44:31 PM »

Hey,

thanks for the answer.

First I thought it makes it more complex for me to develope my MQTT aplication because I don´t have any experience with RTOS.
But now I figured out that it shall be harder to develope applications when I just use the raw API of lwIP (Bare metal). The API with an RTOS shall be easier for application developement.
Is that correct?
Probably it would be hard to port your MQTT example to bare metral right? So I should just better study how an RTOS works.

One question: Which lwIP-API do you use for your lwIP examples? Is it the Netconn API or the BSD Socket API?

Best regards

Vladi
Logged

BRT Community

  • Administrator
  • Full Member
  • *****
  • Posts: 213
    • View Profile
Re: Opportunities of implementing MQTT and their benefits
« Reply #3 on: June 17, 2020, 04:45:52 PM »

Hello Vladi,

Quote
One question: Which lwIP-API do you use for your lwIP examples? Is it the Netconn API or the BSD Socket API?

It doesn't use either of them. The MQTT app for lwIP does it.

Best Regards,
BRT Community
Logged