Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MQTT by
MQTTSライブラリ
MQTTはM2M, IoT向け小型軽量のプロトコルです。このライブラリはMQTT https://developer.mbed.org/teams/mqtt ライブラリにMQTTSセキュリティ層を付加したものです。TLS(SSL)部分はwolfSSLライブラリを使用しています。 https://developer.mbed.org/users/wolfSSL/code/wolfSSL/
この機能追加のために"connect"メソッドのアーギュメントが拡張されています。その他のAPIについてはMQTTから変更ありません。
connect methode
int connect(char* hostname, int port, const char *certName = NULL, int timeout=1000)
第3アーギュメントは以下の値のいずれかとします。
- NULL: MQTTでコネクト。
- 証明書ファイル名文字列へのポインタ: MQTTSでコネクト。サーバ認証のためのPEMまたはDERファイルを指定します。
- NULL文字列へのポインタ: MQTTSでコネクトしますがサーバ認証を行いません。このオプションはプロトタイピングのためのもので、セキュリティの観点からは推奨されません。