Initial pass at MQTT support

should this be a local variable?