# MQTT: IoTメッセージングの標準

## なぜMQTTなのか？

### 軽量で効率的

MQTTクライアントは非常に小さく、最小限のリソースしか必要としないため、小さなマイクロコントローラーで使用することができます。MQTTメッセージヘッダーは、ネットワーク帯域幅を最適化するために小さくなっています。

### 双方向通信

MQTTはデバイスからクラウド、クラウドからデバイスへのメッセージングを可能にします。これにより、グループのものにメッセージを簡単にブロードキャストすることができます。

### 数百万のものにスケールアップ

MQTTは、数百万のIoTデバイスと接続するためにスケールアップすることができます。

### 信頼性のあるメッセージ配信

メッセージの配信の信頼性は、多くのIoTユースケースにとって重要です。これがMQTTが定義する3つの品質保証レベルがある理由です：0 - 最大でも一度、1 - 少なくとも一度、2 - 正確に一度

### 不安定なネットワークへの対応

多くのIoTデバイスは不安定なセルラーネットワークを介して接続します。MQTTの永続セッションのサポートにより、クライアントとブローカーの再接続時間が短縮されます。

### セキュリティ対応

MQTTは、TLSを使用してメッセージを暗号化し、OAuthなどの現代の認証プロトコルを使用してクライアントを認証することを容易にします。

## MQTTのパブリッシュ/サブスクライブアーキテクチャ

<figure><img src="https://2492347595-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOYkbt2zJpXeHi1d4AtDs%2Fuploads%2FzzZSfcwa9p8uPsqlghMA%2Fmqtt-publish-subscribe.png?alt=media&#x26;token=13e32e04-4a19-4ec4-a51f-7632a2bcf914" alt=""><figcaption><p>publish / subscribe</p></figcaption></figure>

## MQTTの実際の使用例

* 自動車
* ロジスティクス
* 製造業
* スマートホーム
* 消費者製品
* 交通


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fubogroup.com/gai-yao/mqtt-iotmessjinguno.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
