forked from espressif/esp-mqtt
Add config option for selecting protocol version at runtime. This also fixed MQTT protocol version 3.1 which wasnt working with the original implementation Closes https://github.com/espressif/esp-idf/issues/4448 Closes IDFGH-2311 Closes IDF-1320