Enhance CMake configuration and add nlohmann/json library files. Updated CMakeLists.txt to include the nlohmann JSON library directory. Added multiple header files for JSON serialization, deserialization, and utility functions, ensuring compatibility with the latest version 3.11.2. This update improves JSON handling capabilities in the project.
This commit is contained in:
@@ -26,7 +26,6 @@ CustomRobot::CustomRobot()
|
||||
CustomRobot::~CustomRobot() {
|
||||
LOG_INFO("Shutting down CustomRobot");
|
||||
|
||||
// Cleanup MQTT client
|
||||
if (mqttClient_) {
|
||||
mqttClient_->stopMessageProcessor();
|
||||
mqttClient_->disconnect();
|
||||
@@ -62,7 +61,6 @@ bool CustomRobot::initialize() {
|
||||
rsc_->SetTimeout(3.0);
|
||||
rsc_->Init();
|
||||
|
||||
// Initialize MQTT client
|
||||
if (!initializeMqtt()) {
|
||||
LOG_ERROR("Failed to initialize MQTT client");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user