Mosquitto与Eclipse Paho客户库 [英] Mosquitto vs eclipse paho client library

查看:230
本文介绍了Mosquitto与Eclipse Paho客户库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是在研究Eclipse PAHO

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.

Mosquitto 库提供了一种实现客户端的方法Mosquitto MQTT经纪人的库.

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

我想了解这两个客户端库之间的主要区别是什么. 此处进行了讨论,但这不能回答我的问题.哪一个优于另一个,为什么?为什么Eclipse同时支持这两种方法?

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?

推荐答案

我是否遇到相同的问题,是否选择 Mosquitto 嵌入式Linux设备的c ++客户端库.我首先尝试了PAHO的最小应用程序.它基本上支持我需要的所有功能,但是cpp-library-wrapper不支持,我觉得主项目分支

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. 加密

  1. encryption

在PAHO中不是通过mainBranch cpp-lib提供的,我将在libmosquitto "rel =" nofollow noreferrer> libmosquittopp 包装器. 如您所见,我的决定仅与cpp库有关.但是像您一样,我仍然有兴趣了解底层C库之间的区别.

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.

这篇关于Mosquitto与Eclipse Paho客户库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆