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

This commit is contained in:
Nixevol
2026-09-30 15:10:02 +08:00
parent 0764b766ac
commit 1aa3a6fdca
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 时读取。