Skip to content

yunba/yunba-embedded-c-sdk

Repository files navigation

Eclipse Paho MQTT C/C++ client for Embedded platforms

Warnning: 这个sdk仅仅实现了大部分mqtt协议需要的内容,但是有部分比较重要的功能,如断线重连等机制,以及特定嵌入式环境的tcp读写,并没有在sdk中实现,需要用户自行实现。

声明:对于自行修改 sdk 而导致的问题,云巴恕不提供技术支持。如果对于 sdk 有个性化需求,可以联系商务定制开发:xieting@yunba.io

This repository contains the source code for the Eclipse Paho MQTT C/C++ client library for Embedded platorms.

It is dual licensed under the EPL and EDL (see about.html and notice.html for more details). You can choose which of these licenses you want to use the code under. The EDL allows you to embed the code into your application, and distribute your application in binary or source form without contributing any of your code, or any changes you make back to Paho. See the EDL for the exact conditions.

The MQTTPacket directory contains the lowest level C library with the smallest requirements. This supplies simple serialization and deserialization routines. It is mainly up to you to write and read to and from the network.

The MQTTClient directory contains the next level C++ library. This still avoids most networking code so that you can plugin the network of your choice.

Build requirements / compilation

There are helper scripts (build...) in various directories. The client library is a set of building blocks which you pick and choose from, so that the smallest MQTT application can be built.

Usage and API

See the samples directory for examples of intended use.

Runtime tracing

As yet, there is no tracing. For the smallest client, should we have tracing?

Reporting bugs

Please report bugs under the "MQTT-Embedded-C" Component in Eclipse Bugzilla for the Paho Technology project.

More information

Discussion of the Paho clients takes place on the Eclipse paho-dev mailing list.

General questions about the MQTT protocol are discussed in the MQTT Google Group.

There is much more information available via the MQTT community site.

##怎样使用

###*nix平台

cd MQTTClient-C/samples/linux

./build.sh

./stdoutsub topic --appkey