MQTT_Logic and new structure