首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

MQTTX 1.10.0 发布:CLI高级文件管理与配置

使用 pub 命令使用以下命令从文件读取消息:mqttx pub -t topic --file-read path/to/file--file-read 选项允许你直接从文件读取内容作为发布的载荷。...使用 bench pub 命令--file-read 命令从文件中读取消息体,类似于简单的 pub 命令:mqttx bench pub -c 10 -t topic --file-read path/...例如,有一个包含以下内容的文件:helloworld您可以使用:mqttx bench pub -c 10 -t topic --file-read path/to/file --split如果文件是用逗号分隔的...,将 --split 改为 ,:mqttx bench pub -c 10 -t topic --file-read path/to/file --split ','最后还可以设置 -im 来定义发布消息的时间间隔...可以使用 --format 选项对消息内容进行格式化以处理不同的数据格式:mqttx pub -t topic --file-read path/to/file --format typemqttx sub

14210
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到
    领券