2024-02-27 09:00:54 +01:00
|
|
|
[block'''<part>''']
|
|
|
|
|
|
|
|
|
|
[section:hello_world_over_tcp Hello World over TCP/IP]
|
|
|
|
|
This example illustrates the process of setting up the Client to connect to the Broker via TCP/IP and publish a "Hello World!" message.
|
|
|
|
|
[import ../../../example/hello_world_over_tcp.cpp]
|
|
|
|
|
[hello_world_over_tcp]
|
|
|
|
|
[endsect] [/hello_world_over_tcp]
|
|
|
|
|
|
|
|
|
|
[section:hello_world_over_tls Hello World over TLS/SSL]
|
|
|
|
|
This example illustrates the process of setting up the Client to connect to the Broker via TLS/SSL and publish a "Hello World!" message.
|
|
|
|
|
[import ../../../example/hello_world_over_tls.cpp]
|
|
|
|
|
[hello_world_over_tls]
|
|
|
|
|
[endsect] [/hello_world_over_tls]
|
|
|
|
|
|
|
|
|
|
[section:hello_world_over_websocket_tcp Hello World over Websocket/TCP]
|
|
|
|
|
This example illustrates the process of setting up the Client to connect to the Broker via Websocket/TCP and publish a "Hello World!" message.
|
|
|
|
|
[import ../../../example/hello_world_over_websocket_tcp.cpp]
|
|
|
|
|
[hello_world_over_websocket_tcp]
|
|
|
|
|
[endsect] [/hello_world_over_websocket_tcp]
|
|
|
|
|
|
|
|
|
|
[section:hello_world_over_websocket_tls Hello World over Websocket/TLS]
|
|
|
|
|
This example illustrates the process of setting up the Client to connect to the Broker via Websocket/TLS and publish a "Hello World!" message.
|
|
|
|
|
[import ../../../example/hello_world_over_websocket_tls.cpp]
|
|
|
|
|
[hello_world_over_websocket_tls]
|
|
|
|
|
[endsect] [/hello_world_over_websocket_tls]
|
|
|
|
|
|
|
|
|
|
[section:publisher The publisher]
|
2024-03-15 09:40:39 +01:00
|
|
|
This example will show how to use __Client__ as a publisher that publishes sensor readings every `5` seconds.
|
|
|
|
|
The __Client__ will use TCP to connect to the Broker and modified __USE_AWAITABLE__ as the completion token.
|
2024-02-27 09:00:54 +01:00
|
|
|
|
|
|
|
|
[import ../../../example/publisher.cpp]
|
|
|
|
|
[publisher]
|
|
|
|
|
[endsect]
|
|
|
|
|
|
|
|
|
|
[section:receiver The receiver]
|
2024-03-15 09:40:39 +01:00
|
|
|
This example will show how to use __Client__ as a receiver.
|
|
|
|
|
The __Client__ subscribes and indefinitely receives Application Messages from the Broker.
|
|
|
|
|
The __Client__ will use TCP to connect to the Broker and modified __USE_AWAITABLE__ as the completion token.
|
2024-02-27 09:00:54 +01:00
|
|
|
|
|
|
|
|
[import ../../../example/receiver.cpp]
|
|
|
|
|
[receiver]
|
|
|
|
|
[endsect]
|
|
|
|
|
|
2024-03-13 14:47:22 +01:00
|
|
|
[section:multiflight_client The multiflight Client]
|
|
|
|
|
This example will show how to use __Client__ to simultaneously dispatch multiple
|
|
|
|
|
requests.
|
|
|
|
|
|
|
|
|
|
[import ../../../example/multiflight_client.cpp]
|
|
|
|
|
[multiflight_client]
|
|
|
|
|
[endsect]
|
|
|
|
|
|
2024-02-27 09:00:54 +01:00
|
|
|
[block'''</part>''']
|