mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
remove mqtt debug print
This commit is contained in:
@@ -37,7 +37,6 @@ void MqttClient::subscribe(const std::string& topic, int qos) {
|
|||||||
|
|
||||||
void MqttClient::publishMessage(const std::string& topic, const std::string& payload) {
|
void MqttClient::publishMessage(const std::string& topic, const std::string& payload) {
|
||||||
try {
|
try {
|
||||||
std::cout << "Publishing message: " << payload << std::endl;
|
|
||||||
client_.publish(topic, payload)->wait();
|
client_.publish(topic, payload)->wait();
|
||||||
} catch (const mqtt::exception& exc) {
|
} catch (const mqtt::exception& exc) {
|
||||||
std::cerr << "Error: " << exc.what() << std::endl;
|
std::cerr << "Error: " << exc.what() << std::endl;
|
||||||
|
Reference in New Issue
Block a user