Refactoring MQTT connector, publisher & subscriber and introducing unique client identifier values