mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-07-30 04:27:34 +02:00
Allow user to modify CONNECT properties
Summary: related to T13332 Reviewers: ivica Reviewed By: ivica Subscribers: miljen, iljazovic Differential Revision: https://repo.mireo.local/D27108
This commit is contained in:
@ -17,9 +17,13 @@ void publish_qos0_tcp() {
|
||||
using client_type = mqtt_client<stream_type>;
|
||||
client_type c(ioc, "");
|
||||
|
||||
connect_props props;
|
||||
props[prop::maximum_packet_size] = 1024;
|
||||
|
||||
c.credentials("test-qos0-tcp", "", "")
|
||||
.brokers("emqtt.mireo.local", 1883)
|
||||
.will({ "test/mqtt-test", "Client disconnected!",qos_e::at_least_once })
|
||||
.connect_properties(std::move(props))
|
||||
.run();
|
||||
|
||||
c.async_publish<qos_e::at_most_once>(
|
||||
|
Reference in New Issue
Block a user