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:
2025-09-08 20:11:08 +08:00
parent 99ca9456c0
commit e7bfce9dcb
3 changed files with 12 additions and 6 deletions

View File

@@ -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));