implement MQTT command parser