mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 04:14:58 +00:00
remove debug prints
This commit is contained in:
@@ -25,7 +25,6 @@ int main(){
|
|||||||
setup();
|
setup();
|
||||||
while(true){
|
while(true){
|
||||||
parseMQTT(readMQTT());
|
parseMQTT(readMQTT());
|
||||||
cout << readMQTT() << endl; //debugging
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -36,9 +35,7 @@ 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;
|
||||||
|
Reference in New Issue
Block a user