实现MQTT协议消息订阅和消息解析流程

This commit is contained in:
lixiaoyuan
2025-09-08 19:34:12 +08:00
parent 566a3b050c
commit e2995eff92
17 changed files with 642 additions and 288 deletions

View File

@@ -39,11 +39,11 @@ public:
memcpy_s(&dest[start], len, &src, len);
}
// 获取当前时间的时间戳(秒)
// 获取当前时间的时间戳(秒)
static int64_t time(std::string s="");
// 获取当前时间的格式字符串
static string timeStr(int64_t ts=0, std::string fmt = "%Y-%m-%d %H:%M:%S");
// 获取当前日期的时间戳(秒)
// 获取当前日期的时间戳(秒)
static int64_t date();
// 获取当前日期的格式字符串
static string dateStr(int64_t ts = 0, std::string fmt = "%Y-%m-%d %H:%M:%S");