Connecting and autodetecting MQTT topics