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:
Korina Šimičević
2023-12-22 13:48:26 +01:00
parent 99f30b3880
commit 7c0b9042d1
9 changed files with 49 additions and 11 deletions

View File

@ -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>(