Fix async prefix in examples

Summary: related to T15996

Reviewers: iljazovic

Reviewed By: iljazovic

Subscribers: miljen

Differential Revision: https://repo.mireo.local/D33773
This commit is contained in:
Korina Šimičević committed 2025-02-17 13:27:13 +01:00
1 parent 40ad372736
commit 684277dc40
12 files changed
+23 -23

No files matched your search

+2 -2
View File
@@ -31,7 +31,7 @@
struct config {
std::string brokers = "broker.hivemq.com";
uint16_t port = 1883;
std::string client_id = "async_mqtt5_tester";
std::string client_id = "boost_mqtt5_tester";
};
// Modified completion token that will prevent co_await from throwing exceptions.
@@ -65,7 +65,7 @@ boost::asio::awaitable<void> publish_sensor_readings(
// Publish the sensor reading with QoS 1.
auto&& [ec, rc, props] = co_await client.async_publish<boost::mqtt5::qos_e::at_least_once>(
"async-mqtt5/test" /* topic */, reading /* payload */,
"boost-mqtt5/test" /* topic */, reading /* payload */,
boost::mqtt5::retain_e::no, boost::mqtt5::publish_props {}, use_nothrow_awaitable
);
// An error can occur as a result of: