emqx/MQTT-Client-Examples
关于
MQTT 客户端示例
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- +1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文MQTT Client Examples
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.
MQTT Broker for Testing
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:
- Broker: broker.emqx.io
- TCP Port: 1883
- WebSocket Port: 8083
- SSL/TLS Port: 8883
- WebSocket Secure Port: 8084
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
Directory Structure
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.
Contributing
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.
License
This repository is licensed under the MIT License. Please see the LICENSE file for more information
探索相关项目
加载中…