MQTT::Client<MQTTNetwork, Countdown> client(mqttNetwork);
Could anybody explain what is being done here compared to a more traditional client(mqttNetwork);
or something like MQTTNetwork *mqttNetwork = new mqttNetwork();
?
What I am also trying to accomplish is to modify that line of code into something that I could initialize similarly to MQTTNetwork *mqttNetwork = new mqttNetwork();
so that i can assign a new object to the pointer from inside a loop, as this code will be used in an embedded application with an infinite loop where the object needs to persist between loop iterations.