Refactor logging in CustomRobot and main event loop implementation. Removed service logging from CustomRobot::start for cleaner output. Added a continuous event loop in main to keep the program running and allow for future periodic tasks.
This commit is contained in:
@@ -88,8 +88,6 @@ bool MqttClient::connect(const std::string& username, const std::string& passwor
|
||||
}
|
||||
}
|
||||
|
||||
LOG_INFO("Connecting to MQTT broker: " + serverURI_);
|
||||
|
||||
int rc = MQTTClient_connect(client_, &connOpts_);
|
||||
if (rc != MQTTCLIENT_SUCCESS) {
|
||||
LOG_ERROR("Failed to connect to MQTT broker, return code: " + std::to_string(rc));
|
||||
|
||||
Reference in New Issue
Block a user