This is an automated email from the ASF dual-hosted git repository.

xiaoyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu-website.git


The following commit(s) were added to refs/heads/main by this push:
     new c178497  docs: mqtt (#480)
c178497 is described below

commit c1784975719a68a48ec23ec0df757b63f78eaa78
Author: Sinsy <[email protected]>
AuthorDate: Sun Mar 13 21:35:44 2022 +0800

    docs: mqtt (#480)
    
    * docs: mqtt
    
    * fix ci error
    
    * fix: ci error
---
 .../version-2.4.2/plugin-center/proxy/mqtt.md      | 46 ++++++++++++++++++++++
 .../plugin-center/proxy/mqtt-plugin.md             | 42 ++++++++++++++++++++
 2 files changed, 88 insertions(+)

diff --git 
a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.2/plugin-center/proxy/mqtt.md
 
b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.2/plugin-center/proxy/mqtt.md
new file mode 100644
index 0000000..1c3f617
--- /dev/null
+++ 
b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.2/plugin-center/proxy/mqtt.md
@@ -0,0 +1,46 @@
+---
+title: Mqtt 插件
+keywords: ["Mqtt"]
+description: Mqtt 插件
+---
+
+## 描述
+
+* 当前 MQTT 协议实现为 3.1 版本,实现的标识值为 
`connect`、`publish`、`subscribe`、`unsubscribe`、`disconnect`,以及 QoS 0。
+  
+* 缺少 retain、Qos(1,2) 实现,以及集群模式。
+
+* 具体请看 
http://public.dhe.ibm.com/software/dw/webservices/ws-mqtt/mqtt-v3r1.html 内容
+
+## 引入 Mqtt 网关的插件支持
+
+* 在网关的 pom.xml 文件中引入这些依赖项。
+
+```xml
+<!-- apache shenyu mqtt plugin start-->
+<dependency>
+    <groupId>org.apache.shenyu</groupId>
+    <artifactId>shenyu-spring-boot-starter-plugin-mqtt</artifactId>
+    <version>${project.version}</version>
+</dependency>
+```
+
+## 插件配置
+
+* port:指定 MQTT BS 端口。
+
+* bossGroupThreadCount:默认 1。
+
+* maxPayloadSize:最大报文大小。
+
+* workerGroupThreadCount:默认 12。
+
+* userName:默认 shenyu。
+
+* password:默认 shenyu。
+
+* isEncryptPassword:默认 false ,是否加密密码。
+
+* 
encryptMode:加密模式,当前实现只有MD5,可自定义加密模式,`org.apache.shenyu.protocol.mqtt.utils.EncryptUtil`
 查看这个类的实现。
+
+* leakDetectorLevel:默认 DISABLED ,资源泄露检测级别。
diff --git a/versioned_docs/version-2.4.2/plugin-center/proxy/mqtt-plugin.md 
b/versioned_docs/version-2.4.2/plugin-center/proxy/mqtt-plugin.md
new file mode 100644
index 0000000..9f7ee1d
--- /dev/null
+++ b/versioned_docs/version-2.4.2/plugin-center/proxy/mqtt-plugin.md
@@ -0,0 +1,42 @@
+---
+title: Mqtt Plugin
+keywords: ["Mqtt"]
+description: Mqtt access shenyu gateway
+---
+
+## Description
+
+* After the plugin is used, it will give the ability of mqtt.
+
+## Introducing Plugin Support of Mqtt Gateway
+
+* Introducing those dependencies in the pom.xml file of the gateway.
+
+```xml
+<!-- apache shenyu mqtt plugin start-->
+<dependency>
+    <groupId>org.apache.shenyu</groupId>
+    <artifactId>shenyu-spring-boot-starter-plugin-mqtt</artifactId>
+    <version>${project.version}</version>
+</dependency>
+```
+
+## Plugin Setting
+
+* port: MQTT BS port designation.
+
+* bossGroupThreadCount: default 1.
+
+* maxPayloadSize: Maximum packet size.
+
+* workerGroupThreadCount: default 12.
+
+* username: default shenyu.
+
+* password: default shenyu.
+
+* isEncryptPassword: The default is false , whether to encrypt the password.
+
+* encryptMode: encryption mode, currently only MD5 is implemented, the 
encryption mode can be customized, 
`org.apache.shenyu.protocol.mqtt.utils.EncryptUtil` view the implementation of 
this encryption class.
+
+* leakDetectorLevel: default DISABLED, resource target detection or detection 
level.

Reply via email to