This repository contains examples of MQTT clients using the MQTT 3.1, 3.1.1, and 5.0 protocols. You can use these examples to learn about the MQTT protocol and how to use MQTT clients with any MQTT broker.
IMPORTANT SECURITY TIP: Before submitting any code changes, please change your username and password to "emqx/public" in the examples' configuration files. This will prevent any unintended access to your MQTT broker.
If you want to test these examples, you can use the MQTT broker provided by EMQ X at broker.emqx.io
. Please note that this is a public broker and should not be used for production.
The broker supports the following protocols:
Regarding the CA certificate download link for the Free Public MQTT Broker, you can visit: https://assets.emqx.com/data/broker.emqx.io-ca.crt
Each directory contains examples in the respective programming language. Examples are organized into folders, with each folder containing an example program. Please see the README file for each example program to learn how to run the example.
If you have any suggestions or improvements regarding MQTT client examples, feel free to submit a pull request. Before submitting a PR, please make sure that you have tested your code and passed all test cases.
This repository is licensed under the MIT License. Please see the LICENSE file for more information
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。