A client class with support for MQTT v5.0, v3.1.1, and v3.1
