paho-mqtt-cpp
MQTT C++ Client for POSIX and Windows
Deprecated List
Global mqtt::connect_options::set_mqtt_version (int mqttVersion)
It is preferable to create the options for the desired version rather than using this function to change the version after some parameters have already been set. If you do use this function, call it before setting any other version-specific options.
Global mqtt::connect_options_builder::mqtt_version (int ver) -> self &
It is preferable to create the options builder for the desired version rather than using this function to change the version after some parameters have already been set. If you do use this function, call it before setting any other version-specific options.