Boilerplate MQTT, use loop threading
merged