This commit is contained in:
zhouhao 2022-06-23 18:35:13 +08:00
parent 07b7bdf16d
commit 5e04b035ed
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
# MQTT认证说明
### 认证说明
CONNECT报文:
```text
clientId: 设备ID
@ -7,5 +8,5 @@ password: md5(secureId+"|"+timestamp+"|"+secureKey)
```
说明: secureId以及secureKey在创建设备产品或设备实例时进行配置.
timestamp为当前系统时间戳(毫秒),与系统时间不能相差5分钟.
timestamp为当前时间戳(毫秒),与服务器时间不能相差5分钟.
md5为32位,不区分大小写.