first commit

This commit is contained in:
cxh 2025-09-09 10:05:49 +08:00
parent 307749f393
commit 63484dedbf

View File

@ -85,7 +85,7 @@ void MQTTClient::publish(const std::string &topic, const std::string &payload, i
try try
{ {
client_->publish(topic, payload.data(), payload.size(), qos, false)->wait_for(std::chrono::milliseconds(500)); client_->publish(topic, payload.data(), payload.size(), qos, false)->wait_for(std::chrono::milliseconds(500));
LOG_INFO("[MQTTClient] Published message to topic: " + topic); LOG_INFO("[MQTT] Published message to topic: " + topic);
} }
catch (const mqtt::exception &e) catch (const mqtt::exception &e)
{ {