IOT Libary - MQTT Publish / subscribe multiple topics

I am using the IIOT libary 4.0.1 to make a mqtt connection to a broker. I`ve got this working.

I am now wondering how to subscribe and publish to multiple different topics. I only want to use the client once in the software. How do I solve something like that? Also i want an different publish timer for every topic. Some topics need an update interval 1 minute, but some topics is an update interval for 1 hour.

Do I have to make an ST program to change the topic and its content over and over again? Or should I better bundle everything in one topic?

You could bundle everything into one topic, or you could change the topic on one Publish call. Or, you could have multiple Publish calls on the same FB, each with a different fixed topic. In that case you should make sure that only one of those methods is publishing at once.