fix: 按 K-00 约定修复 Go SDK 断线重交与退避

This commit is contained in:
Nixevol
2026-09-30 16:24:13 +08:00
parent 3749b9bdf1
commit f6f8ccf269
20 changed files with 1544 additions and 324 deletions
+3
View File
@@ -5,6 +5,9 @@ import (
"time"
)
// DefaultKeepAliveSeconds MQTT 心跳,DEVELOPMENT 第 9 节附录。
const DefaultKeepAliveSeconds = 30
// transport 抽象 MQTT 应用层通道,便于单测注入假实现。
type transport interface {
// Start 开始连接循环(含重连)。凭据在每次 CONNECT 时读取。