Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mosquitto vs eclipse paho client library

I'm just looking into the details of Eclipse PAHO and Mosquitto client libraries (MQTT C++ libraries). It looks like the PAHO uses the mosquitto MQTT broker but provides its own MQTT client libraries.

Also the Mosquitto library provides a way to implement client libraries for Mosquitto MQTT broker.

I would like to understand what's the main difference between these two client libraries. Here it is discussed but that does not answer my question. Which is preferred over another and why? and why eclipse supports both?

like image 335
Panch Avatar asked Mar 27 '17 06:03

Panch


People also ask

What is the difference between PAHO and Mosquitto?

It looks like the PAHO uses the mosquitto MQTT broker but provides its own MQTT client libraries. Also the Mosquitto library provides a way to implement client libraries for Mosquitto MQTT broker. I would like to understand what's the main difference between these two client libraries.

What is the difference between MQTT and Mosquitto?

Message Queuing Telemetry Transport (MQTT) is a standard protocol. Mosquitto is a bridge which connects to other MQTT based messaging servers. Bridge has features of passing MQTT messages from source to destination.


1 Answers

I'm facing the same issue, whether to pick paho or Mosquitto c++ client library for an embedded linux device. I tried first a minimal application with PAHO. It basically supports all the features I need, but the cpp-library-wrapper does not and I feel like the main project branch paho.mqtt.cpp is not maintained very well. Since there are two features

  1. encryption

  2. set all connect options like mqtt-version, etc

which are not offered through the mainBranch cpp-lib in PAHO, I'm going to use libmosquitto with libmosquittopp wrapper now. So as you see my decision is related to the cpp-library only. But like you I'm still interested to get to know what are the differences between the underlying C-libraries.

like image 112
florgeng Avatar answered Oct 06 '22 10:10

florgeng