Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Add function to cleanup retained topics to MQTTAbstraction#233

Merged
hikinggrass merged 6 commits intomainfrom
feature/cleanup-retained-topics
Jan 31, 2025
Merged

Add function to cleanup retained topics to MQTTAbstraction#233
hikinggrass merged 6 commits intomainfrom
feature/cleanup-retained-topics

Conversation

@hikinggrass
Copy link
Member

  • Track all retained topics via the MQTTAbstraction and allow all of them the be cleared at once
  • Clear all topics that are published as retained during startup automatically, unless --retain-topics is passed to the manager (which can be useful for inspecting those topics)

…rtup

Remove them by default now but allow them to be explicitly kept for inspection

Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>

# Conflicts:
#	include/utils/mqtt_abstraction.hpp
#	include/utils/mqtt_abstraction_impl.hpp
#	lib/mqtt_abstraction.cpp
#	lib/mqtt_abstraction_impl.cpp

Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
…ed by the MQTT abstraction

Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>

# Conflicts:
#	src/manager.cpp

Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
@hikinggrass hikinggrass requested a review from a-w50 January 8, 2025 10:43
@hikinggrass hikinggrass removed the request for review from a-w50 January 28, 2025 19:39
@hikinggrass hikinggrass merged commit de31429 into main Jan 31, 2025
4 of 5 checks passed
@hikinggrass hikinggrass deleted the feature/cleanup-retained-topics branch January 31, 2025 10:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants