When the broker url and port are updated from the web app, the mqtt connection should stop and reconnect to the new values.