Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove pub_topic and sub_topic class objects #6

Open
paclema opened this issue May 9, 2023 · 0 comments
Open

Remove pub_topic and sub_topic class objects #6

paclema opened this issue May 9, 2023 · 0 comments
Labels
enhancement New feature or request esp32 esp8266

Comments

@paclema
Copy link
Owner

paclema commented May 9, 2023

There is no need to have the objects:

std::string pub_topic[MQTT_TOPIC_MAX_SIZE_LIST];
std::string sub_topic[MQTT_TOPIC_MAX_SIZE_LIST];

Instead, just use the list std::list<mqtt_client_topic_data> subTopics; to store the sub_topic from the configs

@paclema paclema added enhancement New feature or request esp32 esp8266 labels May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request esp32 esp8266
Projects
None yet
Development

No branches or pull requests

1 participant