Topic: Change Broker Ip Address on runtime

Hi Forum,

When using a mqt client.
Is there a way programmatically to change the Broker IP address which the client is pointing to on runtime?
Once the broker ip address is change what needs to be done? Maybe restart the client?
What is the proper function/methods to call/execute?

Thank you


Re: Change Broker Ip Address on runtime

Hello rlev,

With wolfMQTT, you can change the broker IP during the network connect using


. If the client was already connected to a different broker, you would need to first need to disconnect (