paho.mqtt.embedded-c-master

所属分类:通讯编程
开发工具:C/C++
文件大小:240KB
下载次数:11
上传日期:2017-10-31 18:26:44
上 传 者hren_000
说明:  mqtt嵌入式c客户端测试例程,与官网源码是对应的
(mqtt embedded c client test routines, and the official website source code is the corresponding)

文件列表:
.cproject (18303, 2017-07-14)
.project (762, 2017-07-14)
.settings (0, 2017-07-14)
.settings\org.eclipse.cdt.core.prefs (13576, 2017-07-14)
.settings\org.eclipse.cdt.ui.prefs (119, 2017-07-14)
.travis.yml (431, 2017-07-14)
CMakeLists.txt (1579, 2017-07-14)
CONTRIBUTING.md (3692, 2017-07-14)
Debug (0, 2017-07-14)
Debug\makefile (1071, 2017-07-14)
Debug\objects.mk (231, 2017-07-14)
Debug\sources.mk (422, 2017-07-14)
Debug\src (0, 2017-07-14)
Debug\src\MQTTDeserializeConnect.d (136, 2017-07-14)
Debug\src\subdir.mk (1487, 2017-07-14)
MQTTClient-C (0, 2017-07-14)
MQTTClient-C\CMakeLists.txt (777, 2017-07-14)
MQTTClient-C\samples (0, 2017-07-14)
MQTTClient-C\samples\CMakeLists.txt (700, 2017-07-14)
MQTTClient-C\samples\FreeRTOS (0, 2017-07-14)
MQTTClient-C\samples\FreeRTOS\MQTTEcho.c (2830, 2017-07-14)
MQTTClient-C\samples\linux (0, 2017-07-14)
MQTTClient-C\samples\linux\CMakeLists.txt (956, 2017-07-14)
MQTTClient-C\samples\linux\build.sh (713, 2017-07-14)
MQTTClient-C\samples\linux\stdoutsub.c (5322, 2017-07-14)
MQTTClient-C\src (0, 2017-07-14)
MQTTClient-C\src\CMakeLists.txt (1102, 2017-07-14)
MQTTClient-C\src\FreeRTOS (0, 2017-07-14)
MQTTClient-C\src\FreeRTOS\MQTTFreeRTOS.c (6240, 2017-07-14)
MQTTClient-C\src\FreeRTOS\MQTTFreeRTOS.h (1951, 2017-07-14)
MQTTClient-C\src\MQTTClient.c (18942, 2017-07-14)
MQTTClient-C\src\MQTTClient.h (7609, 2017-07-14)
MQTTClient-C\src\cc3200 (0, 2017-07-14)
MQTTClient-C\src\cc3200\MQTTCC3200.c (4661, 2017-07-14)
MQTTClient-C\src\cc3200\MQTTCC3200.h (1676, 2017-07-14)
MQTTClient-C\src\linux (0, 2017-07-14)
MQTTClient-C\src\linux\MQTTLinux.c (3978, 2017-07-14)
MQTTClient-C\src\linux\MQTTLinux.h (2080, 2017-07-14)
... ...

# Eclipse Paho MQTT C/C++ client for Embedded platforms This repository contains the source code for the [Eclipse Paho](http://eclipse.org/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. There are three sub-projects: 1. MQTTPacket - simple de/serialization of MQTT packets, plus helper functions 2. MQTTClient - high(er) level C++ client, plus 3. MQTTClient-C - high(er) level C client (pretty much a clone of the C++ client) The *MQTTPacket* directory contains the lowest level C library with the smallest requirements. This supplies simple serialization and deserialization routines. They serve as a base for the higher level libraries, but can also be used on their own 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 networking code is contained in separate classes so that you can plugin the network of your choice. Currently there are implementations for Linux, Arduino and mbed. ARM mbed was the first platform for which this was written, where the conventional language choice is C++, which explains the language choice. I have written a starter [Porting Guide](http://modelbasedtesting.co.uk/2014/08/25/porting-a-paho-embedded-c-client/). The *MQTTClient-C* directory contains a C equivalent of MQTTClient, for those platforms where C++ is not supported or the convention. As far as possible it is a direct translation from *MQTTClient*. ## Build requirements / compilation CMake builds for the various packages have been introduced, along with Travis-CI configuration for automated build & testing. The basic method of building on Linux is: ``` mkdir build.paho cd build.paho cmake .. make ``` The travis-build.sh file has the full build and test sequence for Linux. ## Usage and API See the samples directories for examples of intended use. Doxygen config files for each package are available in the doc directory. ## Runtime tracing The *MQTTClient* API has debug tracing for MQTT packets sent and received - turn this on by setting the MQTT_DEBUG preprocessor definition. ## Reporting bugs This project uses GitHub Issues here: [github.com/eclipse/paho.mqtt.embedded-c/issues](https://github.com/eclipse/paho.mqtt.embedded-c/issues) to track ongoing development and issues. ## More information Discussion of the Paho clients takes place on the [Eclipse Mattermost Paho channel](https://mattermost.eclipse.org/eclipse/channels/paho) and the [Eclipse paho-dev mailing list](https://dev.eclipse.org/mailman/listinfo/paho-dev). General questions about the MQTT protocol are discussed in the [MQTT Google Group](https://groups.google.com/forum/?hl=en-US&fromgroups#!forum/mqtt). More information is available via the [MQTT community](http://mqtt.org).

近期下载者

相关文件


收藏者