0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

mqttx cli の使い方

Last updated at Posted at 2025-02-10

Linux にインストール

curl -LO https://www.emqx.com/zh/downloads/MQTTX/v1.8.0/mqttx-cli-linux-x64
 sudo install ./mqttx-cli-linux-x64 /usr/local/bin/mqttx

インストールの確認

$ which mqttx
/usr/local/bin/mqttx

バージョンの確認

$ mqttx --version
1.8.0

Subscribe

mqttx sub -t 'mqttx/cli' -h 'broker.emqx.io' -p 1883

Publish

mqttx pub -t 'mqttx/cli' -h 'broker.emqx.io' -p 1883 -m 'Good Afternoon Feb/10/2025'

実行結果

$ mqttx sub -t 'mqttx/cli' -h 'broker.emqx.io' -p 1883
Good Afternoon Feb/10/2025
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?