Update examples, tests & docs

Summary: related to T13242

Reviewers: ivica

Reviewed By: ivica

Subscribers: miljen, iljazovic

Differential Revision: https://repo.mireo.local/D26889
This commit is contained in:
Korina Šimičević
2023-12-07 15:47:02 +01:00
parent e0a0bafbf1
commit 0d778c6b59
15 changed files with 274 additions and 168 deletions
+5 -4
View File
@@ -18,7 +18,7 @@ void publish_qos0_tcp() {
client_type c(ioc, "");
c.credentials("test-qos0-tcp", "", "")
.brokers("mqtt.mireo.local", 1883)
.brokers("emqtt.mireo.local", 1883)
.will({ "test/mqtt-test", "Client disconnected!",qos_e::at_least_once })
.run();
@@ -31,6 +31,7 @@ void publish_qos0_tcp() {
}
);
ioc.run();
}
@@ -45,7 +46,7 @@ void publish_qos1_tcp() {
client_type c(ioc, "");
c.credentials("test-qos1-tcp", "", "")
.brokers("mqtt.mireo.local", 1883)
.brokers("emqtt.mireo.local", 1883)
.will({ "test/mqtt-test", "Client disconnected!", qos_e::at_least_once })
.run();
@@ -72,7 +73,7 @@ void publish_qos2_tcp() {
client_type c(ioc, "");
c.credentials("test-qos2-tcp", "", "")
.brokers("mqtt.mireo.local", 1883)
.brokers("emqtt.mireo.local", 1883)
.will({ "test/mqtt-test", "Client disconnected!", qos_e::at_least_once })
.run();
@@ -100,7 +101,7 @@ void subscribe_and_receive_tcp(int num_receive) {
client_type c(ioc, "");
c.credentials("test-subscriber-tcp", "", "")
.brokers("mqtt.mireo.local", 1883)
.brokers("emqtt.mireo.local", 1883)
.will({ "test/mqtt-test", "Client disconnected!", qos_e::at_least_once })
.run();