mirror of
https://github.com/eclipse/paho.mqtt.cpp.git
synced 2025-05-10 03:39:07 +08:00
Removed deprecation warnings in connect options because they _always_ trigger for internal code.
This commit is contained in:
parent
91bfc64bdd
commit
9be08dd441
@ -457,15 +457,13 @@ public:
|
|||||||
* @li MQTTVERSION_3_1_1 (4) = only try version 3.1.1
|
* @li MQTTVERSION_3_1_1 (4) = only try version 3.1.1
|
||||||
* @li MQTTVERSION_5 (5) = only try version 5
|
* @li MQTTVERSION_5 (5) = only try version 5
|
||||||
*
|
*
|
||||||
* @deprecated It is preferable to create the options for the desired
|
* Note that it is preferable to create the options for the desired
|
||||||
* version rather than using this function to change the version after
|
* version rather than using this function to change the version after
|
||||||
* some parameters have already been set. If you do use this function,
|
* some parameters have already been set. If you do use this function,
|
||||||
* call it before setting any other version-specific options. @sa
|
* call it before setting any other version-specific options. @sa
|
||||||
* connect_options::v5()
|
* connect_options::v5()
|
||||||
*/
|
*/
|
||||||
[[deprecated("Use a versioned creation function to construct for the desired version"
|
void set_mqtt_version(int mqttVersion);
|
||||||
)]] void
|
|
||||||
set_mqtt_version(int mqttVersion);
|
|
||||||
/**
|
/**
|
||||||
* Enable or disable automatic reconnects.
|
* Enable or disable automatic reconnects.
|
||||||
* The retry intervals are not affected.
|
* The retry intervals are not affected.
|
||||||
@ -850,15 +848,13 @@ public:
|
|||||||
* @li MQTTVERSION_3_1_1 (4) = only try version 3.1.1
|
* @li MQTTVERSION_3_1_1 (4) = only try version 3.1.1
|
||||||
* @li MQTTVERSION_5 (5) = only try version 5
|
* @li MQTTVERSION_5 (5) = only try version 5
|
||||||
*
|
*
|
||||||
* @deprecated It is preferable to create the options builder for the
|
* Note that it is preferable to create the options builder for the
|
||||||
* desired version rather than using this function to change the
|
* desired version rather than using this function to change the version
|
||||||
* version after some parameters have already been set. If you do use
|
* after some parameters have already been set. If you do use this
|
||||||
* this function, call it before setting any other version-specific
|
* function, call it before setting any other version-specific options.
|
||||||
* options. @sa connect_options_builder::v5()
|
* @sa connect_options_builder::v5()
|
||||||
*/
|
*/
|
||||||
[[deprecated("Use a versioned creation function to construct for the desired version"
|
auto mqtt_version(int ver) -> self& {
|
||||||
)]] auto
|
|
||||||
mqtt_version(int ver) -> self& {
|
|
||||||
opts_.set_mqtt_version(ver);
|
opts_.set_mqtt_version(ver);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user