Upgrade mqtt to 0.3.1 which supports MQTT protocol version 3.1.1.