finish add all MQTT APIs