Skip to content

Commit

Permalink
Update Programming-MQTT.md (#138)
Browse files Browse the repository at this point in the history
"enable_mqtt_service=true" and "mqtt_payload_formatter " are in file conf/iotdb-common.properties
  • Loading branch information
CSEwkm authored Jan 10, 2024
1 parent 992aa87 commit 47e2b5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zh/UserGuide/V1.2.x/API/Programming-MQTT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}
Expand All @@ -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
* 搞定.
Expand Down

0 comments on commit 47e2b5c

Please sign in to comment.