From 839c79d460d7d6b4477a58852a8df13d3dabd56e Mon Sep 17 00:00:00 2001 From: Euripedes Rocha Date: Tue, 19 Sep 2023 12:54:16 +0200 Subject: [PATCH] fix(mqtt_cxx): Removes unused type for configuration Event type was introduced in the original version and wasn't used in the code. In 5.1 the leftover type was removed from esp_mqtt breaking this wrapper. --- components/esp_mqtt_cxx/include/esp_mqtt_client_config.hpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/components/esp_mqtt_cxx/include/esp_mqtt_client_config.hpp b/components/esp_mqtt_cxx/include/esp_mqtt_client_config.hpp index 1466b941f3..b0fdd268bc 100644 --- a/components/esp_mqtt_cxx/include/esp_mqtt_client_config.hpp +++ b/components/esp_mqtt_cxx/include/esp_mqtt_client_config.hpp @@ -166,11 +166,6 @@ struct ClientCredentials { std::optional client_id = std::nullopt; }; -struct Event { - mqtt_event_callback_t event_handle; /*!< handle for MQTT events as a callback in legacy mode */ - esp_event_loop_handle_t event_loop_handle; /*!< handle for MQTT event loop library */ -}; - struct LastWill { const char *lwt_topic; /*!< LWT (Last Will and Testament) message topic (NULL by default) */ const char *lwt_msg; /*!< LWT message (NULL by default) */ @@ -201,7 +196,6 @@ struct Connection { }; struct Configuration { - Event event; Task task; Session session; Connection connection;