first commit

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

View File

@ -93,9 +93,12 @@ static void on_mqtt_message_received(const std::string &topic, const std::string
reply["seqNo"] = seqNo;
// 发送应答
MQTTClientWrapper::publish(g_app_config.mqtt.topics.substream_down_ack, reply.dump());
if (mqtt_client)
{
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)
{
// 处理 substream_down