EMQXの管理ダッシュボードにアクセス
http://example.com:18083
次でログインできます。
ユーザー名: admin
パスワード: public
左のメニューから Authentication に入ります。
データベースの選定
私は、 Built-in Database を選びました。
Mechanism の選択
Password-Based を選びます。
ユーザーの作成
user: scott
paswword tiger123
で作成しました。
テスト
サブスクライブ
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"