You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "changxue (Jira)" <ji...@apache.org> on 2023/01/10 02:47:00 UTC
[jira] [Commented] (IOTDB-5249) add interface to set datatype when users customize the payload formatter of mqtt
[ https://issues.apache.org/jira/browse/IOTDB-5249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17656385#comment-17656385 ]
changxue commented on IOTDB-5249:
---------------------------------
验证通过:
1. 使用附件代码编译后 jar 放到 $IOTDB_HOME/ext/mqtt
2. 启动iotdb
3. 运行代码中的mqtt client
4. 查询结果,有三条数据写入 root.stateful.mqtt.s1
{code}
org.apache.iotdb.mqtt.server.CustomizedJsonPayloadFormatter 中写入:
message.setDataTypes(dataTypes);
{code}
> add interface to set datatype when users customize the payload formatter of mqtt
> --------------------------------------------------------------------------------
>
> Key: IOTDB-5249
> URL: https://issues.apache.org/jira/browse/IOTDB-5249
> Project: Apache IoTDB
> Issue Type: Improvement
> Components: Core/Others
> Reporter: Xuan Ronaldo
> Assignee: 马子坤
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.0.1
>
> Attachments: image-2022-12-20-15-40-17-574.png
>
>
> Now, there is not interface to set datatype when we customize the payload formatter of mqtt.
> !image-2022-12-20-15-40-17-574.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)