From 0791ad07a0c1af7e78402a17dfc233b77ed05cae Mon Sep 17 00:00:00 2001 From: cxh Date: Tue, 9 Sep 2025 10:21:16 +0800 Subject: [PATCH] first commit --- src/mqtt_client_wrapper.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mqtt_client_wrapper.cpp b/src/mqtt_client_wrapper.cpp index 167a3fd..d0f9b31 100644 --- a/src/mqtt_client_wrapper.cpp +++ b/src/mqtt_client_wrapper.cpp @@ -49,15 +49,15 @@ static void on_mqtt_message_received(const std::string &topic, const std::string LOG_INFO("[MQTT] Step 3: got status=" + std::to_string(status)); // 处理 video_down - auto j = nlohmann::json::parse(message); + // auto j = nlohmann::json::parse(message); - if (!j.contains("data") || !j["data"].contains("status")) - { - LOG_WARN("[MQTT] video_down JSON missing data.status"); - return; - } + // if (!j.contains("data") || !j["data"].contains("status")) + // { + // LOG_WARN("[MQTT] video_down JSON missing data.status"); + // return; + // } - int status = j["data"]["status"].get(); + // int status = j["data"]["status"].get(); if (status == 1) {