first commit

This commit is contained in:
cxh 2025-09-09 14:00:50 +08:00
parent cec19302f8
commit cdd3961550

View File

@ -93,8 +93,11 @@ static void on_mqtt_message_received(const std::string &topic, const std::string
reply["seqNo"] = seqNo; reply["seqNo"] = seqNo;
// 发送应答 // 发送应答
MQTTClientWrapper::publish(g_app_config.mqtt.topics.substream_down_ack, reply.dump()); if (mqtt_client)
LOG_INFO("[MQTT] Replied to video_down: " + reply.dump()); {
mqtt_client->publish(g_app_config.mqtt.topics.substream_down_ack, reply.dump());
LOG_INFO("[MQTT] Replied to video_down: " + reply.dump());
}
} }
else if (topic == g_app_config.mqtt.topics.substream_down) else if (topic == g_app_config.mqtt.topics.substream_down)
{ {