LoginSignup
3
0

More than 1 year has passed since last update.

MQTT over WebSocket に対応した mosquitto の設定

Last updated at Posted at 2021-08-17

次のシステムを構築するために必要な MQTT ブローカーです。
Grove IoT スターターキット for SORACOM で作るリモートカメラシステム

設定ファイルを次のように変更します。

/etc/mosquitto/mosquitto.conf
(省略)
listener 1883
allow_anonymous true
listener 8080
protocol websockets

mosquitto の再起動

sudo systemctl restart mosquitto

mosquitto のバージョン

$ mosquitto -h
mosquitto version 2.0.10

mosquitto is an MQTT v5.0/v3.1.1/v3.1 broker.

ブローカーの検証については、次のプログラムが使えます。
MQTT Subscribe で受け取った温度と湿度をブラウザーに表示する

broker と topic は自分の環境に合わせて下さい。

3
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
3
0