more debug prints

This commit is contained in:
2024-11-04 11:53:58 +01:00
parent 7e1e46bcc3
commit b64ccd51eb

View File

@@ -37,7 +37,9 @@ std::string readMQTT()
if (!message.empty()) { if (!message.empty()) {
std::cout << "MQTT Message: " << message << std::endl; std::cout << "MQTT Message: " << message << std::endl;
} }
else {
std::cout << "No message received" << std::endl;
}
// Add a small delay to avoid busy-waiting // Add a small delay to avoid busy-waiting
std::this_thread::sleep_for(std::chrono::milliseconds(100)); std::this_thread::sleep_for(std::chrono::milliseconds(100));
return message; return message;