浏览代码

添加编译说明

heyuanjie87 9 年之前
父节点
当前提交
703eb440d8
共有 1 个文件被更改,包括 22 次插入0 次删除
  1. 22 0
      components/external/paho-mqtt/README_CN.md

+ 22 - 0
components/external/paho-mqtt/README_CN.md

@@ -0,0 +1,22 @@
+# 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.
+
+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.
+
+
+## 编译
+
+* 在rtconfig.h中添加 `#define RT_USING_PAHOMQTT`
+* 开启LWIP组件
+
+## 使用方法
+
+参见 `rt-thread\examples\network\mqttclient.c`
+
+## 关于MQTT
+
+参见 [MQTT community site](http://mqtt.org).