diff --git a/README.md b/README.md index 2853969..96e004f 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,5 @@ 类名: `org.jetlinks.protocol.official.JetLinksProtocolSupportProvider` [查看说明](http://doc.jetlinks.cn/basics-guide/jetlinks-protocol-support.html) + +MQTT 用户名密码可以使用[生成工具进行生成](jetlinks-mqtt-auth-generator.html) \ No newline at end of file diff --git a/jetlinks-mqtt-auth-generator.html b/jetlinks-mqtt-auth-generator.html new file mode 100644 index 0000000..56d053f --- /dev/null +++ b/jetlinks-mqtt-auth-generator.html @@ -0,0 +1,54 @@ + + + + + + + + + + JetLinks官方协议MQTT用户名密码生成工具 + +

JetLinks官方协议MQTT用户名密码生成工具

+ + secureId: +
+ secureKey: +
+ +
+ username: +
+ password: + +
+

算法:

+
+var now = new Date().getTime(); //当前时间戳
+var username = secureId+"|"+now; // 拼接用户密码
+var password = md5(username+"|"+secureKey); //使用md5生成摘要
+  
+ + + + \ No newline at end of file