forked from boostorg/mqtt5
Fix build
Summary: related to T15996 Reviewers: iljazovic Reviewed By: iljazovic Subscribers: miljen Differential Revision: https://repo.mireo.local/D33388
This commit is contained in:
@ -87,7 +87,7 @@ int main(int argc, char** argv) {
|
|||||||
.credentials(cfg.client_id) // Set the Client Identifier. (optional)
|
.credentials(cfg.client_id) // Set the Client Identifier. (optional)
|
||||||
.async_run(boost::asio::detached); // Start the Client.
|
.async_run(boost::asio::detached); // Start the Client.
|
||||||
|
|
||||||
client.async_publish<boost/mqtt5::qos_e::at_most_once>(
|
client.async_publish<boost::mqtt5::qos_e::at_most_once>(
|
||||||
"async-mqtt5/test", "Hello world!",
|
"async-mqtt5/test", "Hello world!",
|
||||||
boost::mqtt5::retain_e::no, boost::mqtt5::publish_props{},
|
boost::mqtt5::retain_e::no, boost::mqtt5::publish_props{},
|
||||||
[&client](boost::mqtt5::error_code ec) {
|
[&client](boost::mqtt5::error_code ec) {
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <utility>
|
#include <variant> // std::monostate
|
||||||
|
|
||||||
namespace boost::mqtt5::detail {
|
namespace boost::mqtt5::detail {
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <utility>
|
#include <variant> // std::monostate
|
||||||
|
|
||||||
namespace boost::mqtt5::detail {
|
namespace boost::mqtt5::detail {
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ enum class retain_handling_e : std::uint8_t {
|
|||||||
* \brief Represents the \__SUBSCRIBE_OPTIONS\__ associated with each Subscription.
|
* \brief Represents the \__SUBSCRIBE_OPTIONS\__ associated with each Subscription.
|
||||||
*/
|
*/
|
||||||
struct subscribe_options {
|
struct subscribe_options {
|
||||||
/** \brief Maximum \__QOS\__ level at which the Server can send Application Messages to the Client.
|
/** \brief Maximum \__QOS\__ level at which the Server can send Application Messages to the Client. */
|
||||||
qos_e max_qos = qos_e::exactly_once;
|
qos_e max_qos = qos_e::exactly_once;
|
||||||
|
|
||||||
/** \brief Option determining if Application Messages will be
|
/** \brief Option determining if Application Messages will be
|
||||||
|
Reference in New Issue
Block a user