Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Programming-MQTT.md #138

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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