Skip to content

Commit

Permalink
Removed deprecation warnings in connect options because they _always_…
Browse files Browse the repository at this point in the history
… trigger for internal code.
  • Loading branch information
fpagliughi committed Jun 27, 2024
1 parent 91bfc64 commit 9be08dd
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions include/mqtt/connect_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -457,15 +457,13 @@ class connect_options
* @li MQTTVERSION_3_1_1 (4) = only try version 3.1.1
* @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
* some parameters have already been set. If you do use this function,
* call it before setting any other version-specific options. @sa
* 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.
* The retry intervals are not affected.
Expand Down Expand Up @@ -850,15 +848,13 @@ class connect_options_builder
* @li MQTTVERSION_3_1_1 (4) = only try version 3.1.1
* @li MQTTVERSION_5 (5) = only try version 5
*
* @deprecated 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. @sa connect_options_builder::v5()
*/
[[deprecated("Use a versioned creation function to construct for the desired version"
)]] auto
mqtt_version(int ver) -> self& {
* Note that 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.
* @sa connect_options_builder::v5()
*/
auto mqtt_version(int ver) -> self& {
opts_.set_mqtt_version(ver);
return *this;
}
Expand Down

0 comments on commit 9be08dd

Please sign in to comment.