[mqtt-client] added chapter on different ways to establish network connection

Summary:
related to T12804
	- added chapter on network connection
	- added code examples
	- remove any_authenticator from doc targets
	- manually create table of contents

Reviewers: ivica

Reviewed By: ivica

Subscribers: miljen, iljazovic

Differential Revision: https://repo.mireo.local/D26401
This commit is contained in:
Korina Šimičević
2023-11-03 14:15:35 +01:00
parent 7e60e7a919
commit c8036c0d46
11 changed files with 301 additions and 48 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ void run_with_future(client_type& client) {
std::cout << "Subscribe Reason Code: " << sub_rcs[0].message() << std::endl;
// Note: the get() call on async_receive future could block indefinitely if the mqtt_client
// failed to subscribe or there are no Application Messages to be received from the subcribed Topic!
// failed to subscribe or there are no Application Messages to be received from the subscribed Topic!
if (!sub_rcs[0]) {
using rec_fut_type = std::tuple<std::string, std::string, async_mqtt5::publish_props>;
std::future<rec_fut_type> rec_fut = client.async_receive(asio::use_future);