[{"data":1,"prerenderedAt":904},["Reactive",2],{"VEb9Nnn1YX":3,"blog-post-zh-mqttx-1-9-3-introduces-powerful-iot-scenario-data-simulation-feature":26,"blog-posts-zh":683},{"items":4,"meta":23},[5,8,11,14,17,20],{"title":6,"titleUrl":7},"如何在 Python3 中使用 MQTT 客户端库 Paho Client","how-to-use-mqtt-in-python",{"title":9,"titleUrl":10},"MQTT服务器（MQTT Broker）：工作原理与快速入门指南","the-ultimate-guide-to-mqtt-broker-comparison",{"title":12,"titleUrl":13},"MQTT QoS 0、1、2 解析：快速入门指南","introduction-to-mqtt-qos",{"title":15,"titleUrl":16},"在 ESP32 上使用 MQTT：入门指南","esp32-connects-to-the-free-public-mqtt-broker",{"title":18,"titleUrl":19},"MQTT 主题与通配符（Topics & Wildcards）入门手册","advanced-features-of-mqtt-topics",{"title":21,"titleUrl":22},"车联网 CAN Bus 协议介绍与数据实时流处理","can-bus-how-it-works-pros-and-cons",{"count":24,"limit":24,"page":25},6,1,{"slug":27,"title":28,"description":29,"date":30,"category":31,"cover":32,"version":33,"coverWidth":-1,"coverHeight":-1,"updated":-1,"tags":34,"readingTime":38,"doc":39},"mqttx-1-9-3-introduces-powerful-iot-scenario-data-simulation-feature","提升开发效率：MQTTX 1.9.3 推出强大的 IoT 场景数据模拟功能","MQTTX 1.9.3 为命令行客户端带来了一项重要增强：开发者可以模拟 IoT 场景数据，满足特定的测试需求。","2023-05-29","release-notes","https://assets.emqx.com/images/657ba5a04f29a7b318206a642223db8f.png","1.9.3",[35,36,37],"Release Notes","Data Simulation","IoT",4,{"_path":40,"_dir":41,"_draft":42,"_partial":42,"_locale":43,"title":28,"description":29,"date":44,"category":31,"tags":45,"cover":32,"version":33,"body":46,"_type":676,"_id":677,"_source":678,"_file":679,"_extension":680,"readingTime":38,"sitemap":681},"/blog/zh/mqttx-1-9-3-introduces-powerful-iot-scenario-data-simulation-feature","zh",false,"","2023-05-29T00:00:00.000Z",[35,36,37],{"type":47,"children":48,"toc":658},"root",[49,104,110,115,132,138,160,165,209,237,243,278,287,292,315,320,325,333,356,369,377,383,388,396,457,468,473,479,493,498,509,517,522,527,541,546,551,557,562,568,573,581,586,653],{"type":50,"tag":51,"props":52,"children":53},"element","blockquote",{},[54,82,93],{"type":50,"tag":55,"props":56,"children":57},"p",{},[58,61,71,73,80],{"type":59,"value":60},"text","MQTTX 是一款强大的跨平台 ",{"type":50,"tag":62,"props":63,"children":68},"a",{"href":64,"rel":65,"target":67},"https://www.emqx.com/zh/blog/introduction-to-mqtt-5",[66,66],"noopener","_blank",[69],{"type":59,"value":70},"MQTT 5.0",{"type":59,"value":72}," 桌面端和命令行客户端，让学习、探索和开发 ",{"type":50,"tag":62,"props":74,"children":77},{"href":75,"rel":76,"target":67},"https://www.emqx.com/zh/blog/the-easiest-guide-to-getting-started-with-mqtt",[66,66],[78],{"type":59,"value":79},"MQTT",{"type":59,"value":81}," 变得简单而快速。它是一款全面的 MQTT 工具箱，为使用 MQTT 应用和服务的开发者和用户提供友好的界面和丰富功能。",{"type":50,"tag":55,"props":83,"children":84},{},[85,87],{"type":59,"value":86},"官网：",{"type":50,"tag":62,"props":88,"children":90},{"href":89},"/zh",[91],{"type":59,"value":92},"https://mqttx.app/",{"type":50,"tag":55,"props":94,"children":95},{},[96,98],{"type":59,"value":97},"GitHub：",{"type":50,"tag":62,"props":99,"children":102},{"href":100,"rel":101,"target":67},"https://github.com/emqx/MQTTX",[66,66],[103],{"type":59,"value":100},{"type":50,"tag":105,"props":106,"children":108},"h2",{"id":107},"简介",[109],{"type":59,"value":107},{"type":50,"tag":55,"props":111,"children":112},{},[113],{"type":59,"value":114},"5 月中旬，MQTTX 团队发布了全新的 1.9.3 版本。该版本正式将 MQTT X 更名为 MQTTX，以进一步统一品牌形象。同时，最新版本为命令行客户端带来了一项重要增强：开发者可以模拟 IoT 场景数据，满足特定的测试需求。此外，MQTTX 在 Docker 镜像优化方面也取得了显著进展，文件体积明显减小。",{"type":50,"tag":51,"props":116,"children":117},{},[118],{"type":50,"tag":55,"props":119,"children":120},{},[121,123,130],{"type":59,"value":122},"立即下载",{"type":50,"tag":62,"props":124,"children":127},{"href":125,"rel":126,"target":67},"https://github.com/emqx/MQTTX/releases/tag/v1.9.3",[66,66],[128],{"type":59,"value":129},"最新版本 MQTTX",{"type":59,"value":131},"！→",{"type":50,"tag":105,"props":133,"children":135},{"id":134},"mqttx-cli-增强基于场景的数据模拟",[136],{"type":59,"value":137},"MQTTX CLI 增强：基于场景的数据模拟",{"type":50,"tag":55,"props":139,"children":140},{},[141,143,149,151,158],{"type":59,"value":142},"MQTTX 命令行客户端 ",{"type":50,"tag":62,"props":144,"children":146},{"href":145},"/zh/cli",[147],{"type":59,"value":148},"MQTTX CLI",{"type":59,"value":150}," 新增了名为 ",{"type":50,"tag":152,"props":153,"children":155},"code",{"className":154},[],[156],{"type":59,"value":157},"simulate",{"type":59,"value":159}," 的命令，专门用于模拟特定场景下的 MQTT 发布消息。该功能对于进行系统测试的开发者尤为重要，因为它允许开发者根据测试场景需求模拟数据。例如，开发者可以模拟各种设备发送的数据，从而显著提升开发和测试效率。",{"type":50,"tag":55,"props":161,"children":162},{},[163],{"type":59,"value":164},"该功能的主要参数包括：",{"type":50,"tag":166,"props":167,"children":168},"ul",{},[169,181,192],{"type":50,"tag":170,"props":171,"children":172},"li",{},[173,179],{"type":50,"tag":152,"props":174,"children":176},{"className":175},[],[177],{"type":59,"value":178},"-sc, --scenario",{"type":59,"value":180},"：要模拟的内置场景名称",{"type":50,"tag":170,"props":182,"children":183},{},[184,190],{"type":50,"tag":152,"props":185,"children":187},{"className":186},[],[188],{"type":59,"value":189},"-f, --file",{"type":59,"value":191},"：本地自定义场景脚本的文件路径",{"type":50,"tag":170,"props":193,"children":194},{},[195,201,203],{"type":50,"tag":152,"props":196,"children":198},{"className":197},[],[199],{"type":59,"value":200},"-t, --topic",{"type":59,"value":202},"：消息主题，可选，支持 %u（用户名）、%c（客户端 ID）、%i（索引）、%sc（场景）等变量。默认主题格式为 ",{"type":50,"tag":152,"props":204,"children":206},{"className":205},[],[207],{"type":59,"value":208},"mqttx/simulate/%sc/%c",{"type":50,"tag":55,"props":210,"children":211},{},[212,214,220,222,228,230,235],{"type":59,"value":213},"必须指定 ",{"type":50,"tag":152,"props":215,"children":217},{"className":216},[],[218],{"type":59,"value":219},"--scenario",{"type":59,"value":221}," 或 ",{"type":50,"tag":152,"props":223,"children":225},{"className":224},[],[226],{"type":59,"value":227},"--file",{"type":59,"value":229}," 参数。如果同时设置，",{"type":50,"tag":152,"props":231,"children":233},{"className":232},[],[234],{"type":59,"value":227},{"type":59,"value":236}," 参数优先。",{"type":50,"tag":238,"props":239,"children":241},"h3",{"id":240},"内置场景",[242],{"type":59,"value":240},{"type":50,"tag":55,"props":244,"children":245},{},[246,248,253,255,261,263,269,271,276],{"type":59,"value":247},"MQTTX CLI 提供了多个内置场景，可通过 ",{"type":50,"tag":152,"props":249,"children":251},{"className":250},[],[252],{"type":59,"value":219},{"type":59,"value":254}," 参数指定。例如，运行 ",{"type":50,"tag":152,"props":256,"children":258},{"className":257},[],[259],{"type":59,"value":260},"mqttx simulate --scenario tesla",{"type":59,"value":262}," 可以模拟特斯拉汽车的数据。您还可以使用 ",{"type":50,"tag":152,"props":264,"children":266},{"className":265},[],[267],{"type":59,"value":268},"mqttx ls --scenarios",{"type":59,"value":270}," 命令列出所有内置场景。该命令会输出一个表格，展示每个场景的名称和描述。如果要在 simulate 命令中使用其中某个场景，请在 ",{"type":50,"tag":152,"props":272,"children":274},{"className":273},[],[275],{"type":59,"value":219},{"type":59,"value":277}," 选项中指定场景名称：",{"type":50,"tag":279,"props":280,"children":282},"pre",{"code":281},"mqttx simulate --scenario \u003CSCENARIO_NAME>\n",[283],{"type":50,"tag":152,"props":284,"children":285},{"__ignoreMap":43},[286],{"type":59,"value":281},{"type":50,"tag":55,"props":288,"children":289},{},[290],{"type":59,"value":291},"内置场景包括：",{"type":50,"tag":166,"props":293,"children":294},{},[295,300,305,310],{"type":50,"tag":170,"props":296,"children":297},{},[298],{"type":59,"value":299},"tesla：模拟特斯拉汽车的数据。",{"type":50,"tag":170,"props":301,"children":302},{},[303],{"type":59,"value":304},"IEM：模拟工业能耗监控数据。",{"type":50,"tag":170,"props":306,"children":307},{},[308],{"type":59,"value":309},"smart_home：模拟智能家居数据。",{"type":50,"tag":170,"props":311,"children":312},{},[313],{"type":59,"value":314},"weather：模拟气象站数据。",{"type":50,"tag":238,"props":316,"children":318},{"id":317},"自定义场景",[319],{"type":59,"value":317},{"type":50,"tag":55,"props":321,"children":322},{},[323],{"type":59,"value":324},"开发者可以编写自定义 IoT 数据脚本，以模拟特定场景。例如，以下脚本会生成随机的温度和湿度数据：",{"type":50,"tag":279,"props":326,"children":328},{"code":327},"function generator (faker, options) {\n  return {\n    message: JSON.stringify({\n      temp: faker.datatype.number({ min: 20, max: 80 }),  // Generate a random temperature between 20 and 80.\n      hum: faker.datatype.number({ min: 40, max: 90 }),   // Generate a random humidity between 40 and 90.\n    })\n  }\n}\nmodule.exports = {\n  name: 'myScenario',  // Name of the scenario\n  generator,          // Generator function\n}\n",[329],{"type":50,"tag":152,"props":330,"children":331},{"__ignoreMap":43},[332],{"type":59,"value":327},{"type":50,"tag":55,"props":334,"children":335},{},[336,338,345,347,354],{"type":59,"value":337},"更多示例和详细的编辑指南，请参考 MQTTX GitHub 仓库中的 ",{"type":50,"tag":62,"props":339,"children":342},{"href":340,"rel":341,"target":67},"https://github.com/emqx/MQTTX/tree/main/scripts-example/IoT-data-scenarios",[66,66],[343],{"type":59,"value":344},"scripts-example",{"type":59,"value":346}," 文件夹。您还可以探索使用 ",{"type":50,"tag":62,"props":348,"children":351},{"href":349,"rel":350,"target":67},"https://fakerjs.dev/",[66,66],[352],{"type":59,"value":353},"faker.js",{"type":59,"value":355}," 生成各种类型的随机数据。",{"type":50,"tag":55,"props":357,"children":358},{},[359,361,367],{"type":59,"value":360},"如需了解更多信息，用户还可以运行 ",{"type":50,"tag":152,"props":362,"children":364},{"className":363},[],[365],{"type":59,"value":366},"help",{"type":59,"value":368}," 命令：",{"type":50,"tag":279,"props":370,"children":372},{"code":371},"mqttx simulate --help\n",[373],{"type":50,"tag":152,"props":374,"children":375},{"__ignoreMap":43},[376],{"type":59,"value":371},{"type":50,"tag":238,"props":378,"children":380},{"id":379},"示例智能家居场景",[381],{"type":59,"value":382},"示例：智能家居场景",{"type":50,"tag":55,"props":384,"children":385},{},[386],{"type":59,"value":387},"假设您想模拟 10 个智能家居设备向指定主题发布数据的场景，可以运行以下命令：",{"type":50,"tag":279,"props":389,"children":391},{"code":390},"mqttx simulate -sc smart_home -c 10 -h broker.emqx.io -t testtopic/smart_home\n",[392],{"type":50,"tag":152,"props":393,"children":394},{"__ignoreMap":43},[395],{"type":59,"value":390},{"type":50,"tag":55,"props":397,"children":398},{},[399,401,407,409,415,417,423,425,431,433,439,441,447,449,455],{"type":59,"value":400},"该命令将启动 10 个模拟器（由 ",{"type":50,"tag":152,"props":402,"children":404},{"className":403},[],[405],{"type":59,"value":406},"-c 10",{"type":59,"value":408}," 参数指定），它们会向 ",{"type":50,"tag":152,"props":410,"children":412},{"className":411},[],[413],{"type":59,"value":414},"testtopic/smart_home",{"type":59,"value":416}," 主题（由 ",{"type":50,"tag":152,"props":418,"children":420},{"className":419},[],[421],{"type":59,"value":422},"-t testtopic/smart_home",{"type":59,"value":424}," 参数指定）发布数据，模拟智能家居设备的行为。数据由内置的 ",{"type":50,"tag":152,"props":426,"children":428},{"className":427},[],[429],{"type":59,"value":430},"smart_home",{"type":59,"value":432}," 场景生成（由 ",{"type":50,"tag":152,"props":434,"children":436},{"className":435},[],[437],{"type":59,"value":438},"-sc smart_home",{"type":59,"value":440}," 参数指定）。此外，这些模拟器会连接到服务器 ",{"type":50,"tag":152,"props":442,"children":444},{"className":443},[],[445],{"type":59,"value":446},"broker.emqx.io",{"type":59,"value":448},"（由 ",{"type":50,"tag":152,"props":450,"children":452},{"className":451},[],[453],{"type":59,"value":454},"-h broker.emqx.io",{"type":59,"value":456}," 参数指定）。订阅该主题后，您将看到类似以下的数据：",{"type":50,"tag":279,"props":458,"children":463},{"code":459,"language":460,"meta":43,"className":461},"{\n  \"home_id\": \"e5ee7759-464f-4df8-9b68-2afc906da39a\",\n  \"owner_name\": \"Dustin Hessel\",\n  \"address\": \"8850 Ona Circle\",\n  \"rooms\": [{\n    \"room_type\": \"living room\",\n    \"temperature\": 19,\n    \"humidity\": 45,\n    \"lights_on\": true,\n    \"window_open\": false\n  }, {\n    \"room_type\": \"bedroom\",\n    \"temperature\": 23,\n    \"humidity\": 33,\n    \"lights_on\": true,\n    \"window_open\": false,\n    \"bed_occupancy\": false\n  }, {\n    \"room_type\": \"kitchen\",\n    \"temperature\": 23,\n    \"humidity\": 50,\n    \"lights_on\": false,\n    \"window_open\": false,\n    \"fridge_temperature\": 5,\n    \"oven_on\": true\n  }, {\n    \"room_type\": \"bathroom\",\n    \"temperature\": 23,\n    \"humidity\": 46,\n    \"lights_on\": true,\n    \"window_open\": true,\n    \"water_tap_running\": false,\n    \"bath_water_level\": 68\n  }],\n  \"timestamp\": 1684810770255\n}\n","json",[462],"language-json",[464],{"type":50,"tag":152,"props":465,"children":466},{"__ignoreMap":43},[467],{"type":59,"value":459},{"type":50,"tag":55,"props":469,"children":470},{},[471],{"type":59,"value":472},"这些数据展示了智能家居环境的状态，包括每个房间的温度、湿度、照明等信息。",{"type":50,"tag":105,"props":474,"children":476},{"id":475},"部署优化精简-docker-镜像",[477],{"type":59,"value":478},"部署优化：精简 Docker 镜像",{"type":50,"tag":55,"props":480,"children":481},{},[482,484,491],{"type":59,"value":483},"在 MQTTX 1.9.3 中，我们显著优化了 MQTTX CLI 和 ",{"type":50,"tag":62,"props":485,"children":488},{"href":486,"rel":487,"target":67},"https://mqttx.app/web-client/",[66,66],[489],{"type":59,"value":490},"MQTTX Web Client",{"type":59,"value":492}," 的 Docker 镜像。我们采用了多阶段构建技术，并切换到基于 Alpine Linux 的 Node.js 环境（node:16-alpine）。这些调整将 Docker 镜像体积减少了约 81.3%。具体而言，MQTTX CLI 的 Docker 镜像从原来的 1.07GB 减小到 200.52MB，MQTTX Web Client 的 Docker 镜像从原来的 886.75MB 缩小到 146.4MB。",{"type":50,"tag":55,"props":494,"children":495},{},[496],{"type":59,"value":497},"这些优化大幅降低了用户的存储占用，加快了镜像下载速度，从而降低了使用成本。优化后的镜像在保持完整功能的同时，还提升了运行效率。此外，这些改进减轻了网络传输压力，使在 Docker 环境中私有部署 MQTTX Web Client 更加便捷高效。",{"type":50,"tag":55,"props":499,"children":500},{},[501],{"type":50,"tag":502,"props":503,"children":508},"img",{"alt":504,"src":505,"loading":506,"decoding":507},"MQTTX CLI Docker","https://assets.emqx.com/images/edb85e5ba132bef570e11e1d96922da8.png?x-image-process=image/resize,w_1520/format,webp","lazy","async",[],{"type":50,"tag":55,"props":510,"children":511},{},[512],{"type":50,"tag":502,"props":513,"children":516},{"alt":514,"src":515,"loading":506,"decoding":507},"MQTTX Web Client Docker","https://assets.emqx.com/images/d298063bd058efd0b0082bf1c3253d20.png?x-image-process=image/resize,w_1520/format,webp",[],{"type":50,"tag":105,"props":518,"children":520},{"id":519},"桌面客户端增强",[521],{"type":59,"value":519},{"type":50,"tag":238,"props":523,"children":525},{"id":524},"自动重连",[526],{"type":59,"value":524},{"type":50,"tag":55,"props":528,"children":529},{},[530,532,539],{"type":59,"value":531},"连接默认启用自动重连。如果 MQTTX 桌面客户端因网络问题或其他原因与 ",{"type":50,"tag":62,"props":533,"children":536},{"href":534,"rel":535,"target":67},"https://www.emqx.com/zh/blog/the-ultimate-guide-to-mqtt-broker-comparison",[66,66],[537],{"type":59,"value":538},"MQTT 服务器",{"type":59,"value":540},"断开连接，客户端会自动尝试重新连接。",{"type":50,"tag":238,"props":542,"children":544},{"id":543},"连接状态下禁止编辑",[545],{"type":59,"value":543},{"type":50,"tag":55,"props":547,"children":548},{},[549],{"type":59,"value":550},"在连接状态下禁用编辑，以防止意外修改并确保数据一致性。",{"type":50,"tag":238,"props":552,"children":554},{"id":553},"修复-ubuntu-上的启动问题",[555],{"type":59,"value":556},"修复 Ubuntu 上的启动问题",{"type":50,"tag":55,"props":558,"children":559},{},[560],{"type":59,"value":561},"我们解决了 MQTTX 在 Ubuntu 系统上无法启动的问题。现在，Ubuntu 用户可以正常使用我们的桌面客户端。",{"type":50,"tag":238,"props":563,"children":565},{"id":564},"logo-更新",[566],{"type":59,"value":567},"Logo 更新",{"type":50,"tag":55,"props":569,"children":570},{},[571],{"type":59,"value":572},"我们优化了应用 Logo，将 MQTT X 更改为 MQTTX，使其更加简洁、易于识别。",{"type":50,"tag":55,"props":574,"children":575},{},[576],{"type":50,"tag":502,"props":577,"children":580},{"alt":578,"src":579,"loading":506,"decoding":507},"MQTTX","https://assets.emqx.com/images/f849ef91f21ca2fc6386874edcdfc49b.png?x-image-process=image/resize,w_1520/format,webp",[],{"type":50,"tag":105,"props":582,"children":584},{"id":583},"未来规划",[585],{"type":59,"value":583},{"type":50,"tag":587,"props":588,"children":589},"ol",{},[590,595,600,605,619,624,629,634,648],{"type":50,"tag":170,"props":591,"children":592},{},[593],{"type":59,"value":594},"将 IoT 场景数据模拟功能同步到桌面客户端。",{"type":50,"tag":170,"props":596,"children":597},{},[598],{"type":59,"value":599},"增强消息展示框中 JSON 等特定数据格式的高亮显示。",{"type":50,"tag":170,"props":601,"children":602},{},[603],{"type":59,"value":604},"支持 Protobuf 消息格式。",{"type":50,"tag":170,"props":606,"children":607},{},[608,610,617],{"type":59,"value":609},"支持 ",{"type":50,"tag":62,"props":611,"children":614},{"href":612,"rel":613,"target":67},"https://www.emqx.com/en/solutions/mqtt-sparkplug",[66,66],[615],{"type":59,"value":616},"Sparkplug B",{"type":59,"value":618},"。",{"type":50,"tag":170,"props":620,"children":621},{},[622],{"type":59,"value":623},"支持配置忽略存储 QoS 0 消息，以减少存储空间占用。",{"type":50,"tag":170,"props":625,"children":626},{},[627],{"type":59,"value":628},"MQTT Debug 功能。",{"type":50,"tag":170,"props":630,"children":631},{},[632],{"type":59,"value":633},"自动为接收到的消息绘制图表。",{"type":50,"tag":170,"props":635,"children":636},{},[637,639,646],{"type":59,"value":638},"支持 CoAP、",{"type":50,"tag":62,"props":640,"children":643},{"href":641,"rel":642,"target":67},"https://www.emqx.com/zh/blog/connecting-mqtt-sn-devices-using-emqx",[66,66],[644],{"type":59,"value":645},"MQTT-SN",{"type":59,"value":647}," 等协议扩展的插件功能。",{"type":50,"tag":170,"props":649,"children":650},{},[651],{"type":59,"value":652},"脚本测试自动化（Flow）。",{"type":50,"tag":55,"props":654,"children":655},{},[656],{"type":59,"value":657},"MQTTX 始终致力于提供最佳用户体验，成为全球 MQTT 服务和应用开发者不可或缺的客户端工具。",{"title":43,"searchDepth":659,"depth":659,"links":660},2,[661,662,668,669,675],{"id":107,"depth":659,"text":107},{"id":134,"depth":659,"text":137,"children":663},[664,666,667],{"id":240,"depth":665,"text":240},3,{"id":317,"depth":665,"text":317},{"id":379,"depth":665,"text":382},{"id":475,"depth":659,"text":478},{"id":519,"depth":659,"text":519,"children":670},[671,672,673,674],{"id":524,"depth":665,"text":524},{"id":543,"depth":665,"text":543},{"id":553,"depth":665,"text":556},{"id":564,"depth":665,"text":567},{"id":583,"depth":659,"text":583},"markdown","content:blog:zh:mqttx-1-9-3-introduces-powerful-iot-scenario-data-simulation-feature.md","content","blog/zh/mqttx-1-9-3-introduces-powerful-iot-scenario-data-simulation-feature.md","md",{"loc":682,"lastmod":30},"/zh/blog/mqttx-1-9-3-introduces-powerful-iot-scenario-data-simulation-feature",[684,691,698,704,711,718,725,731,738,745,752,759,766,773,780,787,794,801,808,814,821,822,829,836,843,850,856,863,870,877,883,890,897],{"slug":685,"title":686,"description":687,"date":688,"category":31,"cover":689,"version":690},"mqttx-1-13-2-released","MQTTX 1.13.2 发布：MQTTX Agent 与 Dashboard","MQTTX 1.13.2 通过 MQTTX Agent 自动执行 MQTT 测试、比对消息并排查问题，Dashboard 独立展示设备指标与趋势。","2026-10-26","/images/blog/mqttx-1-13-2-released.webp","1.13.2",{"slug":692,"title":693,"description":694,"date":695,"category":696,"cover":697,"version":-1},"introducing-mqttx-ai-agent-skill","MQTTX AI Agent Skill 正式发布","MQTTX CLI 内置的 Agent Skill，让 AI 编码 Agent 能够正确、安全地完成 MQTT 连接检查、消息收发、压测与数据模拟。","2026-09-20","product","/images/blog/introducing-mqttx-ai-agent-skill.webp",{"slug":699,"title":700,"description":701,"date":695,"category":31,"cover":702,"version":703},"mqttx-1-13-1-released","MQTTX 1.13.1 发布：AI Agent Skill 与 MQTT 5.0 订阅用户属性","MQTTX 1.13.1 新增 CLI Agent Skill 和 MQTT 5.0 订阅用户属性，同时改进数据导出、渲染安全与日常调试体验。","/images/blog/mqttx-1-13-1-released.webp","1.13.1",{"slug":705,"title":706,"description":707,"date":708,"category":31,"cover":709,"version":710},"mqttx-1-13-0-released","MQTTX 1.13.0 发布：消息体查看器与 UI 优化","该版本带来了全新的消息体查看器功能，包含差异视图和 JSON 树视图，让消息调试更加直观高效。同时新增快速复制功能，支持一键复制 Topic、Payload 和连接地址。","2026-02-03","https://assets.emqx.com/images/8c7121a4362a9bfa897396a3fc8fefaa.png","1.13.0",{"slug":712,"title":713,"description":714,"date":715,"category":31,"cover":716,"version":717},"mqttx-1-12-1-release-notes","MQTTX 1.12.1 发布：SCRAM 认证与安全增强","MQTTX 1.12.1 带来了重要的安全更新，包括全平台支持的 SCRAM 增强认证、修复了消息显示中的 XSS 漏洞、更新了 2025 年最新的 AI 模型，以及关键的稳定性改进。","2025-10-16","https://assets.emqx.com/images/8e89d5d55c44425251ab2b7e84fdb5c8.png","1.12.1",{"slug":719,"title":720,"description":721,"date":722,"category":31,"cover":723,"version":724},"mqttx-1-12-0-release-notes","MQTTX 1.12.0 发布：Copilot 2.0 & 原生 MCP 集成","MQTTX 1.12.0 版本正式发布，带来了 Copilot 2.0 功能（集成 Gemini 2.5 Pro、Claude-4、GPT-4.1、o3/o4-mini、Azure OpenAI 等模型）。","2025-07-03","https://assets.emqx.com/images/2ff9750580cb332de42e887eef90dfb4.jpg","1.12.0",{"slug":726,"title":727,"description":728,"date":729,"category":696,"cover":730,"version":-1},"enhancing-mqtt-toolbox-with-ai-capabilities","MQTTX + MCP：MQTT 客户端秒变物联网 Agent","作为最受欢迎的 MQTT 客户端工具，MQTTX 在 1.12.0 beta 版本中集成了模型上下文协议（MCP）到 Copilot AI 功能中，显著提升了服务能力。","2025-04-17","https://assets.emqx.com/images/0414033f16fee53f3c8b8e3538a38fef.png",{"slug":732,"title":733,"description":734,"date":735,"category":31,"cover":736,"version":737},"mqttx-1-11-1-release-notes","MQTTX 1.11.1 发布: 可视化功能增强","该版本增强了 MQTTX 的可视化功能，改进了主题树功能和实时流量监控。新增的流量速率监控功能为用户提供实时数据包追踪，主题树现在支持与连接列表的手动同步以及 MQTT 属性显示。","2024-12-20","https://assets.emqx.com/images/2f182bc8a29fb11bf11a6f39a67bec7c.jpg","1.11.1",{"slug":739,"title":740,"description":741,"date":742,"category":31,"cover":743,"version":744},"mqttx-1-11-0-release-notes","MQTTX 1.11.0 发布：Topic Tree 与 Avro Schema","本次发布引入了 Topic Tree 可视化功能，提供了一种按层级组织和监控 MQTT 主题的强大新方式。","2024-10-29","https://assets.emqx.com/images/dba4e395e4043265d635384c6670c206.jpg","1.11.0",{"slug":746,"title":747,"description":748,"date":749,"category":31,"cover":750,"version":751},"mqttx-1-10-1-release-notes","MQTTX 1.10.1 发布：桌面端一键安装命令行工具","本次更新带来了一系列提升用户体验的重要功能：通过桌面应用一键安装 MQTTX 命令行工具；增加对自定义 AI Copilot API 的支持，为中国区域内的用户提供内置的 Moonshot LLM API。","2024-07-25","https://assets.emqx.com/images/c83ea38e592729c4349f39fa8ee2883a.jpg","1.10.1",{"slug":753,"title":754,"description":755,"date":756,"category":31,"cover":757,"version":758},"mqttx-1-10-0-release-notes","MQTTX 1.10.0 发布：CLI高级文件管理与配置","在本次更新中，CLI 版本在文件管理和配置功能方面进行了显著增强。主要更新包括：支持从文件中读取和写入消息、高级配置选项、文本输出模式、以及改进的日志记录。","2024-06-14","https://assets.emqx.com/images/76adac845cbb113915947ca5b76631a5.jpg","1.10.0",{"slug":760,"title":761,"description":762,"date":763,"category":31,"cover":764,"version":765},"mqttx-1-9-10-release-notes","MQTTX 1.9.10 发布：升级 Faker.js、增强连接与订阅诊断、优化 UI","MQTTX 1.9.10 引入了一项关键更新：将 Faker.js 升级到 v8，带来重大变更。此次升级将影响那些使用自定义模拟脚本的用户，需要对脚本进行修改以保持与新版本的兼容。","2024-04-25","https://assets.emqx.com/images/f4a343ea4a9accc7c2b9047e2ee992aa.png","1.9.10",{"slug":767,"title":768,"description":769,"date":770,"category":771,"cover":772,"version":-1},"how-to-publish-and-receive-protobuf-messages-within-mqtt","如何在 MQTT 中发布和接收 Protobuf 消息？","MQTTX 是一款开源的全功能 MQTT 客户端，支持从 JSON、Base64 到现如今的 Protobuf 的多种格式。我们将在本文中展示如何使用 MQTTX 来定义、发布和接收 Protobuf 消息。","2024-04-17","guides","https://assets.emqx.com/images/348e290abdede74446c634642b1bfcf7.png",{"slug":774,"title":775,"description":776,"date":777,"category":31,"cover":778,"version":779},"mqttx-1-9-9-release-notes","MQTTX 1.9.9 发布：新增日志级别自定义功能、UI 增强","MQTTX 1.9.9 现已正式发布。该版本带来了多项关键更新：包括优化连接事件的处理、新增 CBOR 数据格式支持、提供可定制的调试日志级别以及增强用户界面灵活性。","2024-02-21","https://assets.emqx.com/images/2f5c68eb83929b730860399f9486ae21.png","1.9.9",{"slug":781,"title":782,"description":783,"date":784,"category":31,"cover":785,"version":786},"mqttx-1-9-8-release-notes","MQTTX 1.9.8 发布：CLI 支持调试模式、AI Copilot 增强","MQTTX 1.9.8 现已发布，新版本中 MQTTX CLI 新增了调试模式，这一功能增强了开发者的故障排查和分析能力。此外，更新也改进了 MQTTX AI Copilot 功能，为用户提供了更先进的基于 AI 驱动的 MQTT 交互支持。","2024-01-29","https://assets.emqx.com/images/5624cf41d474bf0cf8b6aaa47cf09c1f.png","1.9.8",{"slug":788,"title":789,"description":790,"date":791,"category":31,"cover":792,"version":793},"mqttx-1-9-7-release-notes","MQTTX 1.9.7 更新：MQTTX AI Copilot 发布","此次更新的一大亮点是引入了 MQTTX Copilot，全新的 MQTT AI 助手，为用户提供更方便、快捷的使用体验。AI 助手能增强用户互动，帮助用户更深入理解并使用 MQTT 和 EMQX。","2024-01-22","https://assets.emqx.com/images/18f1a0ab5e4967d46c2b9d351da052a4.png","1.9.7",{"slug":795,"title":796,"description":797,"date":798,"category":31,"cover":799,"version":800},"mqttx-v-1-9-6-release-notes","MQTTX 1.9.6 发布：ALPN 协议支持，UI 持续优化","本次更新主要重点在于加强连接协议、并对用户界面进行了优化，旨在提供一个更高效、安全和用户友好的体验。","2023-09-26","https://assets.emqx.com/images/359278439c384548665bfb0388f0aa24.png","1.9.6",{"slug":802,"title":803,"description":804,"date":805,"category":31,"cover":806,"version":807},"mqttx-1-9-5-released-json-message-highlighting-and-more","MQTTX 1.9.5 发布：JSON 消息高亮显示","MQTT 5.0 客户端工具 MQTTX 1.9.5 正式发布。本次更新中，我们主要针对桌面客户端强化了 JSON 语法的错误消息提示，并在消息中增加了 JSON 高亮的支持。此外，我们还对 UI 进行了多项修改和优化，以进一步增强用户体验。","2023-08-25","https://assets.emqx.com/images/f82115ce699de70fb54e8f45adacf878.png","1.9.5",{"slug":809,"title":810,"description":811,"date":812,"category":771,"cover":813,"version":-1},"demonstrate-mqtt-5-0-features-using-mqttx-cli","探索 MQTT 5.0 新特性：基于 MQTTX CLI 的使用示例","为了让大家更全面地了解 MQTT 5.0，本文将依次介绍 5.0 引入的各个新特性，并使用 MQTTX CLI 工具演示我们应该如何在 EMQX 中使用这些特性，你可以通过复制和粘贴命令轻松地运行本文中的示例。","2023-08-23","https://assets.emqx.com/images/35e43ae683c590cf512c62cf11a7e8cd.png",{"slug":815,"title":816,"description":817,"date":818,"category":31,"cover":819,"version":820},"mqttx-v-1-9-4-release-notes","MQTTX 1.9.4 发布：全面支持 Protobuf 格式 MQTT 消息传输测试","MQTTX 1.9.4 正式发布：本次更新为用户提供了更高效的 Protobuf 消息传输支持，并优化了自动更新功能，同时进行了一些功能特性的优化和增强。","2023-08-01","https://assets.emqx.com/images/cde7c8e2e51e7398057cb8e11d811192.png","1.9.4",{"slug":27,"title":28,"description":29,"date":30,"category":31,"cover":32,"version":33},{"slug":823,"title":824,"description":825,"date":826,"category":31,"cover":827,"version":828},"mqttx-v-1-9-2-release-notes","MQTTX 1.9.2 发布：更出色的 MQTT 客户端工具箱","v1.9.2 支持命令行工具的输出模式，用户可以根据需要自定义数据管道，从而更便捷、高效地处理输出数据。","2023-04-27","https://assets.emqx.com/images/44cad865821d28706395fd74e8bd766a.png","1.9.2",{"slug":830,"title":831,"description":832,"date":833,"category":31,"cover":834,"version":835},"mqttx-v-1-9-1-release-notes","MQTTX 1.9.1 发布：资源消耗降低 80%，稳定性大幅提升","MQTT 5.0 客户端工具 MQTT X 1.9.1 稳定版本正式发布，CPU 资源消耗与内存占用减少 80%，整体性能得到大幅优化。","2023-02-10","https://assets.emqx.com/images/c7f10755128e074ae4e28cd8139b790f.png","1.9.1",{"slug":837,"title":838,"description":839,"date":840,"category":31,"cover":841,"version":842},"mqttx-v-1-9-0-release-notes","MQTTX 1.9.0 发布：开箱即用的 bench 命令，MQTT 性能测试更便捷","近日，MQTT 5.0 客户端工具 MQTT X 1.9.0 正式发布：命令行客户端新增了 bench 命令，帮助用户轻松完成 MQTT 服务的性能测试。","2022-11-15","https://assets.emqx.com/images/c5a4b83637473e6e414b11101046771f.png","1.9.0",{"slug":844,"title":845,"description":846,"date":847,"category":31,"cover":848,"version":849},"mqttx-v-1-8-3-release-notes","MQTTX v1.8.3 正式发布","MQTT X v1.8.3 优化了 MQTT 5.0 Clean Start 的使用方式，为会话过期间隔添加默认值；同时也改进了 MQTT X CLI 的默认输出显示。","2022-10-20","https://assets.emqx.com/images/a9fd38699c5731bd4210c81297ac8af4.png","1.8.3",{"slug":851,"title":852,"description":853,"date":854,"category":696,"cover":855,"version":-1},"powerful-and-easy-to-use-mqtt-5-command-line-tool","MQTTX CLI 发布：强大易用的 MQTT 5.0 命令行工具","MQTT X v1.8.0 发布：除了通过新增的快速复制连接功能优化使用体验之外，还增加了 CLI（命令行） 和 Web 端这两种新的交互方式 。","2022-07-21","https://assets.emqx.com/images/2780d4b1fe9f0f3c0792515feb90b1e1.png",{"slug":857,"title":858,"description":859,"date":860,"category":31,"cover":861,"version":862},"mqttx-v-1-7-2-release-notes","MQTTX v1.7.2 正式发布","MQTT X v1.7.1 正式发布：支持设置重连周期，增加更多的 ARM 包，共享订阅支持 Topic 颜色标记。","2022-01-28","https://assets.emqx.com/images/241fe4ef50adbfdea9e43979028757b2.png","1.7.2",{"slug":864,"title":865,"description":866,"date":867,"category":31,"cover":868,"version":869},"mqttx-v-1-7-1-release-notes","MQTTX v1.7.1 正式发布","MQTT X v1.7.1 正式发布，新增支持 MQTT 5.0 订阅标识符、 编辑/启用/禁用 Topic、并优化了 MQTT 5.0 的属性展示。","2022-01-18","https://assets.emqx.com/images/a2df1acb1d15e7e9378ec9e1ebcdc716.png","1.7.1",{"slug":871,"title":872,"description":873,"date":874,"category":31,"cover":875,"version":876},"mqttx-v-1-7-0-release-notes","MQTTX v1.7.0 发布：率先支持 MQTT 5.0 新特性的桌面测试客户端","MQTT X v1.7.0 新增很多关于 MQTT 5.0 的属性配置功能支持，使其成为目前同类工具中支持 MQTT 5.0 最为完整的 MQTT 桌面客户端工具。","2021-12-16","https://assets.emqx.com/images/6ed96b88a4524e11609b2e4fd792574c.png","1.7.0",{"slug":878,"title":879,"description":880,"date":881,"category":771,"cover":882,"version":-1},"mqttx-script-function-tutorial","MQTTX 脚本功能使用教程","MQTT X 在 v1.4.2 版本后加入了脚本功能，用户可使用脚本对 Payload 进行自定义转换，本文将通过两个简单的实例来介绍脚本功能的使用。","2021-02-23","https://assets.emqx.com/images/d9b2744f485887c9fae26133ed2e4b14.png",{"slug":884,"title":885,"description":886,"date":887,"category":31,"cover":888,"version":889},"mqttx-v-1-4-2-release-notes","MQTTX v1.4.2 正式发布 - 跨平台 MQTT 5.0 桌面客户端","MQTT X v1.4.2 正式发布，新增脚本功能、Client ID 自动加入时间戳，并优化了部分功能。","2020-12-19","https://assets.emqx.com/images/8a061565b6d6ce57580c371bc27b63dc.png","1.4.2",{"slug":891,"title":892,"description":893,"date":894,"category":31,"cover":895,"version":896},"mqttx-v-1-3-1-release-notes","MQTTX v1.3.1 发布 - 跨平台 MQTT 5.0 客户端工具","该版本新增： MQTT 5.0 更多属性、单击已订阅的 Topic 项实现消息过滤、点击 Topic 名称后快速复制 Topic 信息、启用严格的证书验证选项。","2020-05-15","https://assets.emqx.com/images/daebe4ee5cf1a736923d821c30949aa2.png","1.3.1",{"slug":898,"title":899,"description":900,"date":901,"category":31,"cover":902,"version":903},"mqttx-v1-3-0-was-officially-released-an-elegant-cross-platform-mqtt5-desktop-test-client","MQTTX v1.3.0 正式发布 - 跨平台 MQTT 5.0 桌面测试客户端","MQTT X 是由 EMQ 开源的一款跨平台 MQTT 5.0 桌面测试客户端，它支持 macOS，Linux，Windows。用户可以使用 MQTT X 快速创建多个同时在线的 MQTT 客户端，方便测试 MQTT/TCP、MQTT/TLS 的连接/发布/订阅功能及其他 MQTT 协议 特性。","2020-03-19","https://assets.emqx.com/images/a6221d0ffcaad5c8019e239340833f44.png","1.3.0",1793585627265]