Mosquitto vs eclipse paho - Difference in both client libraries

0 votes

I was just checking out all the details about Eclipse PAHO and Mosquitto client libraries (MQTT C++ libraries). And, it seems like PAHO uses the Mosquitto MQTT broker but provides its own set of MQTT client libraries. The Mosquitto library also provides a way to implement client libraries for Mosquitto MQTT broker.

So, can anyone tell me about the major difference between both these client libraries? Which is one generally preferred over the other and why? Also, why and how Eclipse supports using both?

Thanks In Advance!

Nov 22, 2018 in IoT (Internet of Things) by Bharani
• 4,660 points
5,444 views

1 answer to this question.

0 votes

I was stuck with the exact same dilemma on if I should be going with Paho or Mosquitto c++ client library for an embedded linux device. First, I tried a minimal application with PAHO as It supported every feature that I needed while the cpp-library-wrapper did not. So, my opinion of the main project branch paho.mqtt.cpp is that it has not been maintained too well, like say, they lack these two important features:

  • encryption
  • set all connect options like mqtt-version, etc

These are not offered through the mainBranch cpp-lib in PAHO. I use libmosquitto with libmosquittopp wrapper now and as you can see, my decision leans towards the cpp-library only. But, just like you, I'm still curious about more differences between the underlying C-libraries.

answered Nov 22, 2018 by nirvana
• 3,130 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

How to read data from MQTT in Eclipse Paho?

You don't read data from a MQTT ...READ MORE

answered Aug 9, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
941 views
0 votes
1 answer

Faster communication between two ESP8266 in client-server setup

Try following. Server loop void loop() { // ...READ MORE

answered Jul 13, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
6,831 views
0 votes
1 answer

Changing message format in KURA MQTT cloud client

The Eclipse Kura communicates with a MQTT ...READ MORE

answered Jul 29, 2018 in IoT (Internet of Things) by DataKing99
• 8,250 points
1,172 views
0 votes
1 answer

Where is published message stored by mosquitto broker if offline?

Well, of course, they are stored! That ...READ MORE

answered Aug 10, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
3,790 views
0 votes
1 answer

Eclipse Paho: read data from MQTT Broker

From what I could analyze, you've been ...READ MORE

answered Aug 9, 2018 in IoT (Internet of Things) by DataKing99
• 8,250 points
2,450 views
0 votes
1 answer

Mosquitto broker- Horizontally scaling

For accuracy, let me mention that other ...READ MORE

answered Sep 5, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
2,611 views
0 votes
1 answer

MQTT protocol connection error

Ok so you need two libraries to ...READ MORE

answered Jul 6, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points

reshown Jul 6, 2018 by Vardhan 3,067 views
0 votes
1 answer
0 votes
1 answer

Setting-up a RFID RC522 chip in Raspberry Pi?

First, let me congratulate you on buying ...READ MORE

answered Jul 10, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,686 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP