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,550 points
1,081 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,060 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,260 points
100 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,260 points
1,475 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,130 points
179 views
0 votes
1 answer
0 votes
1 answer

Eclipse Paho: read data from MQTT Broker

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

answered Aug 8, 2018 in IoT (Internet of Things) by DataKing99
• 8,130 points
694 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,530 points
478 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,260 points

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

Setting-up a RFID RC522 chip in Raspberry Pi?

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

answered Jul 9, 2018 in IoT (Internet of Things) by nirvana
• 3,060 points
180 views