MQTT logger able to find all topics automatically

Good morning to everyone.
In my house I use MQTT to connect all my sensors and actuators to home assistant.
Now, I want to create a black box for all MQTT messages in my network. More specifically I would like to save to an sd card all datas together with the current time. The problem is that I will be adding new sensors and new actuators in the next years and I want to avoid to re-program this black-box arduino to subscribe to new topic each time.
Is there an MQTT library with specific command to list or to subscribe to all MQTT topic of your network?
In windows I use MQTT explorer and it is able to see all topics in my network.

Thank you very much in advance.

Welcome to the forum

The sketch would need to continuously scan for new topics. Can you use wildcards in topic names ?

Yes:

Thank you for your answers.
Yes, I guess I can use. So, the basic idea would be to create a main topic for all my sensors and then use a wildcard to subscribe to all sub-topics. I would need to reprogram all my sensors and actuators, but this make sense.
Is there any alternative?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.