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) {