Recently, MQTT X has released the latest version 1.8.1 (download address: https://github.com/emqx/MQTTX/releases/tag/v1.8.1 ), the MQTT X desktop version has supported automatic updates and is compatible with MQTT X Web pages are optimized. At present, MQTT X CLI has completed the connection support and user property setting support for MQTT 5.0 , and a conn command has been added to quickly test the connection. The bench command will be added in the future, which will support the performance test of the MQTT protocol in some scenarios.
MQTT X desktop client
Automatic update function
In each previous version release, users can jump to the latest version download page through the download button in the upgrade prompt box, and manually download the installation package to complete the software update. Starting from v1.8.1, users no longer need to download and install manually, just click the button after receiving the upgrade prompt, and the software background can automatically upgrade the version to the latest. The automatic update function allows users to experience the latest functions faster and improve the user experience.
After the update is complete, you can view the latest release log in the pop-up box to quickly understand the update content of the current version and improve the user experience.
Default MQTT 5.0 connection
In previous versions, MQTT X defaulted to MQTT 3.1.1 connections. As the most complete MQTT client tool that currently supports MQTT 5.0 features, we have modified the MQTT version of MQTT X default connection to 5.0 in the latest version, so that more users can quickly use and experience the new features of MQTT 5.0.
Validate topics before publishing
When a user sends a message to a topic with wildcard characters such as + and #, the connection will be disconnected. Many new users will often encounter such problems when they do not understand the MQTT protocol, resulting in disconnection and use. doubts. In version 1.8.1, in order to avoid such a situation, we verified the Topic before publishing. Only when these Topics that do not contain wildcards are used during publishing, the publishing can be successful.
MQTT X CLI
MQTT 5.0 support
MQTT X CLI 1.8.1 has now completed the connection support for MQTT 5.0, and uses the MQTT 5.0 connection by default when using it. At the same time, a new user attribute parameter --user-properties
is added, which supports setting user attributes when connecting, publishing, and subscribing. E.g:
mqttx pub -t 'hello' -h 'broker.emqx.io' -p 1883 -m 'from MQTTX CLI' -up "name: mqttx" "company: EMQ"
Added conn command
In the current version 1.8.0, only two commands, pub and sub, are supported, that is, fast publish and subscribe. For some simple scenarios that only need to test the connectivity of the MQTT service, the conn command is more convenient.
mqttx conn -h 'broker.emqx.io' -p 1883 -u 'admin' -P 'public'
MQTT X Web
The current online address of MQTT X Web has been modified to: http://www.emqx.io/online-mqtt-client
Just visit the above address, you can quickly use this online MQTT 5.0 client tool, connect to MQTT Broker through MQTT over WebSocket and test message publishing and receiving in the browser, and quickly develop and debug your MQTT services and applications.
In version 1.8.1, the page style has been optimized, and the testing function has been improved. In the future, we will continue to improve the attribute configuration function of MQTT 5.0.
Fixes and optimizations
In addition to adding the above new features, this update also fixes many known issues and further improves stability.
- Fix the pop-up reminder that MQTT X quit unexpectedly in macOS system
- Fix the style problem when MQTT X displays user attributes in the message list
- Fix the invalid
--clean
parameter under MQTT X CLI, use--no-clean
parameter instead
future plan
MQTT X is still in the process of continuous enhancement and improvement, in order to bring more practical and powerful functions to users and facilitate the testing and development of the IoT platform.
Next we will focus on the following:
- User experience upgrade
- MQTT X CLI will support bench command
- Plugin system (e.g. support for SparkPlug B, integration with MQTT X CLI)
- Script function optimization
- Launched MQTT X Mobile mobile application
- Improve MQTT X Web function
- MQTT Debug function
Attachment: Help with the use of the connection command
connect
mqttx conn --help
Copyright statement: This article is original by EMQ, please indicate the source when reprinting.
Original link: https://www.emqx.com/zh/blog/mqttx-v-1-8-1-release-notes
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。