[mqtt-client] some doc fixes

Summary:
related to T12804

- b2 rebuilds when documented .hpp files are changed

- some text changes

- some link fixes

Reviewers: ivica

Reviewed By: ivica

Subscribers: miljen

Differential Revision: https://repo.mireo.local/D26240
This commit is contained in:
Korina Šimičević committed 2023-10-26 13:42:51 +02:00
1 parent bc882cb6ac
commit 2f1f910552
7 files changed
+206 -62

No files matched your search

+18 -17
View File
@@ -19,10 +19,10 @@ namespace asio = boost::asio;
/**
* \brief \__MQTT\__ client used to connect and communicate with a Broker.
*
* \tparam StreamType Type of the underlying transport protocol used to transfer
* \tparam \__StreamType\__ Type of the underlying transport protocol used to transfer
* the stream of bytes between the Client and the Broker. The transport must be
* ordered and lossless.
* \tparam TlsContext Type of the context object used in TLS/SSL connections.
* \tparam \__TlsContext\__ Type of the context object used in TLS/SSL connections.
*/
template <
typename StreamType,
@@ -63,9 +63,9 @@ public:
{}
/**
* \brief Constructs a client with given parameters.
* \brief Constructs a Client with given parameters.
*
* \tparam ExecutionContext Type of a concrete execution context.
* \tparam \__ExecutionContext\__ Type of a concrete execution context.
* \param context Execution context whose executor will be associated with the Client.
* \param cnf
* \param tls_context A context object used in TLS/SLL connection.
@@ -85,6 +85,7 @@ public:
mqtt_client(context.get_executor(), cnf, std::move(tls_context))
{}
/// Copy constructor.
mqtt_client(const mqtt_client& other) = delete;
/**
@@ -139,7 +140,7 @@ public:
* \details All outstanding operations will complete
* with `boost::asio::error::operation_aborted`.
*
* \note The Client cannot be used before calling \ref mqtt_client::run again.
* \attention The Client cannot be used before calling \ref mqtt_client::run again.
*/
void cancel() {
get_executor().execute([svc_ptr = _svc_ptr]() {
@@ -250,10 +251,10 @@ public:
* The list of all possible error codes that this operation can finish with:\n
* - `boost::system::errc::errc_t::success`\n
* - `boost::asio::error::operation_aborted` \n
* - \link client::error::pid_overrun \endlink
* - \link client::error::qos_not_supported \endlink
* - \link client::error::retain_not_available \endlink
* - \link client::error::topic_alias_maximum_reached \endlink
* - \link async_mqtt5::client::error::pid_overrun \endlink
* - \link async_mqtt5::client::error::qos_not_supported \endlink
* - \link async_mqtt5::client::error::retain_not_available \endlink
* - \link async_mqtt5::client::error::topic_alias_maximum_reached \endlink
*
* Refer to the section on \__ERROR_HANDLING\__ to find the underlying causes for each error code.
*/
@@ -292,7 +293,7 @@ public:
*
* \details After the subscription has been established, the Broker will send
* PUBLISH packets to the Client to forward Application Messages that were published
* to Topics that the Client subscribed to. The \__PUBLISH\__ packets can be received
* to Topics that the Client subscribed to. The Application Messages can be received
* with \ref mqtt_client::async_receive function.
*
* \param topics A list of \ref subscribe_topic of interest.
@@ -316,7 +317,7 @@ public:
* The list of all possible error codes that this operation can finish with:\n
* - `boost::system::errc::errc_t::success`\n
* - `boost::asio::error::operation_aborted` \n
* - \link client::error::pid_overrun \endlink
* - \link async_mqtt5::client::error::pid_overrun \endlink
*
* Refer to the section on \__ERROR_HANDLING\__ to find the underlying causes for each error code.
*/
@@ -349,7 +350,7 @@ public:
*
* \details After the subscription has been established, the Broker will send
* \__PUBLISH\__ packets to the Client to forward Application Messages that were published
* to Topics that the Client subscribed to. The \__PUBLISH\__ packets can be received
* to Topics that the Client subscribed to. The Application Messages can be received
* with \ref mqtt_client::async_receive function.
*
* \param topic A \ref subscribe_topic of interest.
@@ -373,7 +374,7 @@ public:
* The list of all possible error codes that this operation can finish with:\n
* - `boost::system::errc::errc_t::success`\n
* - `boost::asio::error::operation_aborted` \n
* - \link client::error::pid_overrun \endlink
* - \link async_mqtt5::client::error::pid_overrun \endlink
*
* Refer to the section on \__ERROR_HANDLING\__ to find the underlying causes for each error code.
*/
@@ -418,7 +419,7 @@ public:
* The list of all possible error codes that this operation can finish with:\n
* - `boost::system::errc::errc_t::success`\n
* - `boost::asio::error::operation_aborted` \n
* - \link client::error::pid_overrun \endlink
* - \link async_mqtt5::client::error::pid_overrun \endlink
*
* Refer to the section on \__ERROR_HANDLING\__ to find the underlying causes for each error code.
*/
@@ -474,7 +475,7 @@ public:
* The list of all possible error codes that this operation can finish with:\n
* - `boost::system::errc::errc_t::success`\n
* - `boost::asio::error::operation_aborted` \n
* - \link client::error::pid_overrun \endlink
* - \link async_mqtt5::client::error::pid_overrun \endlink
*
* Refer to the section on \__ERROR_HANDLING\__ to find the underlying causes for each error code.
*/
@@ -538,7 +539,7 @@ public:
* \details Send a \__DISCONNECT\__ packet to the Broker with a Reason Code
* describing the reason for disconnection.
*
* \note This function will close the Client. See \ref mqtt_client::cancel.
* \attention This function will close the Client. See \ref mqtt_client::cancel.
*
* \param reason_code Reason Code to notify
* the Broker of the reason for disconnection.
@@ -580,7 +581,7 @@ public:
* \ref reason_codes::normal_disconnection describing
* the reason for disconnection.
*
* \note This function will close the Client. See \ref mqtt_client::cancel.
* \attention This function will close the Client. See \ref mqtt_client::cancel.
*
* \param token Completion token that will be used to produce a
* completion handler, which will be called when the operation completed.
+5 -5
View File
@@ -86,13 +86,13 @@ struct subscribe_options {
* \brief Representation of the Retain As Published Subscribe Option.
*
* \details A Subscribe Option indicating whether or not Application Messages forwarded
* using this subscription keep the \ref retain_e flag they were published with.
* using this subscription keep the \__RETAIN\__ flag they were published with.
*/
enum class retain_as_published_e : std::uint8_t {
/** Application Messages have the \ref retain_e flag set to 0. */
/** Application Messages have the \__RETAIN\__ flag set to 0. */
dont = 0b0,
/** Application Messages keep the \ref retain_e flag they were published with. */
/** Application Messages keep the \__RETAIN\__ flag they were published with. */
retain = 0b1
};
@@ -114,13 +114,13 @@ struct subscribe_options {
};
/// Maximum \ref qos_e level at which the Server can send Application Messages to the Client.
/// Maximum \__QOS\__ level at which the Server can send Application Messages to the Client.
qos_e max_qos = qos_e::exactly_once;
/// Option determining if Application Messages will be forwarded to a connection with an equal ClientID.
no_local_e no_local = no_local_e::yes;
/// Option determining if Application Message will keep their \ref retain_e flag.
/// Option determining if Application Message will keep their \__RETAIN\__ flag.
retain_as_published_e retain_as_published = retain_as_published_e::retain;
/// Option determining if retained messages are sent when the subscription is established.