You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2023/01/12 06:47:51 UTC

[iotdb] branch master updated: Fix mqtt docs (#8845)

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 4a73e612d3 Fix mqtt docs (#8845)
4a73e612d3 is described below

commit 4a73e612d3e8a8ed08a12af2a1574eb3731b450d
Author: 马子坤 <55...@users.noreply.github.com>
AuthorDate: Thu Jan 12 14:47:45 2023 +0800

    Fix mqtt docs (#8845)
---
 docs/UserGuide/API/Programming-MQTT.md    | 4 ++--
 docs/zh/UserGuide/API/Programming-MQTT.md | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/UserGuide/API/Programming-MQTT.md b/docs/UserGuide/API/Programming-MQTT.md
index 93e952a1c7..4d3f6a9fc7 100644
--- a/docs/UserGuide/API/Programming-MQTT.md
+++ b/docs/UserGuide/API/Programming-MQTT.md
@@ -115,7 +115,7 @@ Steps:
             <version>${project.version}</version>
         </dependency>
 ```
-* Define your implementation which implements `org.apache.iotdb.db.mqtt.PayloadFormatter.java`
+* Define your implementation which implements `org.apache.iotdb.db.protocol.mqtt.PayloadFormatter`
 e.g.,
 
 ```java
@@ -162,7 +162,7 @@ public class CustomizedJsonPayloadFormatter implements PayloadFormatter {
     }
 }
 ```
-* modify the file in `src/main/resources/META-INF/services/org.apache.iotdb.db.mqtt.PayloadFormatter`:
+* modify the file in `src/main/resources/META-INF/services/org.apache.iotdb.db.protocol.mqtt.PayloadFormatter`:
   clean the file and put your implementation class name into the file.
   In this example, the content is: `org.apache.iotdb.mqtt.server.CustomizedJsonPayloadFormatter`
 * compile your implementation as a jar file: `mvn package -DskipTests`
diff --git a/docs/zh/UserGuide/API/Programming-MQTT.md b/docs/zh/UserGuide/API/Programming-MQTT.md
index 57037ae75a..4c65b14f62 100644
--- a/docs/zh/UserGuide/API/Programming-MQTT.md
+++ b/docs/zh/UserGuide/API/Programming-MQTT.md
@@ -115,7 +115,7 @@ connection.disconnect();
             <version>${project.version}</version>
         </dependency>
 ```
-* 创建一个实现类,实现接口 `org.apache.iotdb.db.mqtt.PayloadFormatter.java`
+* 创建一个实现类,实现接口 `org.apache.iotdb.db.mqtt.protocol.PayloadFormatter`
 
 ```java
 package org.apache.iotdb.mqtt.server;
@@ -161,7 +161,7 @@ public class CustomizedJsonPayloadFormatter implements PayloadFormatter {
     }
 }
 ```
-* 修改项目中的 `src/main/resources/META-INF/services/org.apache.iotdb.db.mqtt.PayloadFormatter` 文件:
+* 修改项目中的 `src/main/resources/META-INF/services/org.apache.iotdb.db.protocol.mqtt.PayloadFormatter` 文件:
   将示例中的文件内容清除,并将刚才的实现类的全名(包名.类名)写入文件中。注意,这个文件中只有一行。
   在本例中,文件内容为: `org.apache.iotdb.mqtt.server.CustomizedJsonPayloadFormatter`
 * 编译项目生成一个 jar 包: `mvn package -DskipTests`