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?

EMQX: Username と Password を使う

Last updated at Posted at 2025-03-05

EMQXの管理ダッシュボードにアクセス

http://example.com:18083

image.png

次でログインできます。

ユーザー名: admin
パスワード: public

左のメニューから Authentication に入ります。

image.png

データベースの選定

私は、 Built-in Database を選びました。

Mechanism の選択

Password-Based を選びます。

ユーザーの作成

user: scott
paswword tiger123
で作成しました。

image.png

テスト

サブスクライブ

mosquitto_sub -d -h example.com -t topic_aa \
	-u scott -P tiger123

パブリッシュ

mosquitto_pub -d -h example.com -t topic_aa \
	-u scott -P tiger123 \
	-m "こんにちは PM 13:25"
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?