2024-02-27 09:00:54 +01:00
|
|
|
[section:examples Examples]
|
|
|
|
|
[nochunk]
|
|
|
|
|
|
|
|
|
|
The following list contains all the examples that showcase how to use the __Client__:
|
|
|
|
|
|
|
|
|
|
[variablelist
|
|
|
|
|
[
|
|
|
|
|
[[link async_mqtt5.publisher publisher.cpp]]
|
2024-03-15 09:40:39 +01:00
|
|
|
[Shows how to use the __Client__ as a publisher. The __Client__ publishes sensor readings every `5 seconds`.]
|
2024-02-27 09:00:54 +01:00
|
|
|
]
|
|
|
|
|
[
|
|
|
|
|
[[link async_mqtt5.receiver receiver.cpp]]
|
2024-03-15 09:40:39 +01:00
|
|
|
[Shows how to use the __Client__ as a receiver. The __Client__ subscribes and indefinitely receives Application Messages from the Broker.]
|
2024-02-27 09:00:54 +01:00
|
|
|
]
|
|
|
|
|
[
|
|
|
|
|
[[link async_mqtt5.hello_world_over_tcp hello_world_over_tcp.cpp]]
|
|
|
|
|
[Publishes a "Hello World" message via TCP/IP.]
|
|
|
|
|
]
|
|
|
|
|
[
|
|
|
|
|
[[link async_mqtt5.hello_world_over_tls hello_world_over_tls.cpp]]
|
|
|
|
|
[Publishes a "Hello World" message via TLS/SSL.]
|
|
|
|
|
]
|
|
|
|
|
[
|
|
|
|
|
[[link async_mqtt5.hello_world_over_websocket_tcp hello_world_over_websocket_tcp.cpp]]
|
|
|
|
|
[Publishes a "Hello World" message via Websocket/TLS.]
|
|
|
|
|
]
|
|
|
|
|
[
|
|
|
|
|
[[link async_mqtt5.hello_world_over_websocket_tls hello_world_over_websocket_tls.cpp]]
|
|
|
|
|
[Publishes a "Hello World" message via Websocket/TLS.]
|
|
|
|
|
]
|
2024-03-13 14:47:22 +01:00
|
|
|
[
|
|
|
|
|
[[link async_mqtt5.multiflight_client multiflight_client.cpp]]
|
|
|
|
|
[Shows how to use the __Client__ to simultaneously dispatch multiple requests.]
|
|
|
|
|
]
|
2024-02-27 09:00:54 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[endsect][/examples]
|