emqx / MQTT-Client-Examples

MQTT Client Examples

Home Page:https://www.emqx.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

MQTT Client Examples

https://www.emqx.com

License:MIT License


Languages

Language:Kotlin 32.0%Language:Swift 26.7%Language:Java 7.1%Language:JavaScript 6.9%Language:Python 6.3%Language:C++ 4.6%Language:C 3.7%Language:HTML 2.4%Language:Vue 2.1%Language:Go 1.9%Language:C# 1.4%Language:Erlang 1.0%Language:TypeScript 1.0%Language:Dart 0.6%Language:PHP 0.4%Language:Objective-C++ 0.3%Language:Shell 0.3%Language:Objective-C 0.3%Language:Ruby 0.3%Language:Elixir 0.2%Language:SCSS 0.2%Language:Makefile 0.1%Language:CMake 0.1%Language:CSS 0.1%Language:Starlark 0.1%Language:Dockerfile 0.0%Language:QMake 0.0%