13
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MQTTとは

Last updated at Posted at 2015-02-09

背景

MQTTとは

  • Message Queuing Telemetry Transportの略称
  • IoTやM2M向けに開発された軽量プロトコル
  • デバイスから少量的なデータの送受信や3Gなど不安定的なネットワーク環境に最適化される
  • クライアントとサーバ側に、いろいろな言語で書かれている

サイト

機能

publisher

  • メッセージをbrokerへの送信側

subscriber

  • メッセージをbrokerからの受信側

topic

  • subscriber側に、指定しているtopicだけを受信することができる
  • 例えば、/datacenter/harumi/floor/42/temperatureを指定したら、subscriberがその温度を受信できる

broker

  • topicに登録していたsubscriberに対して、messageの配信を行う.

will

  • ここでのWillは「遺言」の意味
  • publisher側が、意図しない理由で切断された場合に、このWillで指定されたtopicとmessageをsubscriberに送信する

retain

  • topicごとに最後にpublishされたmessageをMQTTサーバーが保持しておき、新しいsubscriberにそのmessageを渡す機能

サーバー

mosquitto

apache apollo

MQTT as a Service sango

IBM MessageSight

クライアント

13
14
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
13
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?