forked from boostorg/mqtt5
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:
+5
-4
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user