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

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


The following commit(s) were added to refs/heads/main by this push:
     new 47e2b5c  Update Programming-MQTT.md (#138)
47e2b5c is described below

commit 47e2b5cc10bdb41783cbb90c59e2fe60bf74e1c3
Author: CSEwkm <[email protected]>
AuthorDate: Wed Jan 10 11:43:08 2024 +0800

    Update Programming-MQTT.md (#138)
    
    "enable_mqtt_service=true" and "mqtt_payload_formatter " are in file 
conf/iotdb-common.properties
---
 src/zh/UserGuide/V1.2.x/API/Programming-MQTT.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/zh/UserGuide/V1.2.x/API/Programming-MQTT.md 
b/src/zh/UserGuide/V1.2.x/API/Programming-MQTT.md
index 76c0723..cadeb2e 100644
--- a/src/zh/UserGuide/V1.2.x/API/Programming-MQTT.md
+++ b/src/zh/UserGuide/V1.2.x/API/Programming-MQTT.md
@@ -156,7 +156,7 @@ public class CustomizedJsonPayloadFormatter implements 
PayloadFormatter {
 
     @Override
     public String getName() {
-        // set the value of mqtt_payload_formatter in 
iotdb-datanode.properties as the following string:
+        // set the value of mqtt_payload_formatter in iotdb-common.properties 
as the following string:
         return "CustomizedJson";
     }
 }
@@ -169,8 +169,8 @@ public class CustomizedJsonPayloadFormatter implements 
PayloadFormatter {
 
 在 IoTDB 服务端:
 * 创建 ${IOTDB_HOME}/ext/mqtt/ 文件夹, 将刚才的 jar 包放入此文件夹。
-* 打开 MQTT 服务参数. (`enable_mqtt_service=true` in 
`conf/iotdb-datanode.properties`)
-* 用刚才的实现类中的 getName() 方法的返回值 设置为 `conf/iotdb-datanode.properties` 中 
`mqtt_payload_formatter` 的值, 
+* 打开 MQTT 服务参数. (`enable_mqtt_service=true` in `conf/iotdb-common.properties`)
+* 用刚才的实现类中的 getName() 方法的返回值 设置为 `conf/iotdb-common.properties` 中 
`mqtt_payload_formatter` 的值, 
   , 在本例中,为 `CustomizedJson`
 * 启动 IoTDB
 * 搞定.

Reply via email to