forked from boostorg/mqtt5
topic validation in subscribe, unsubscribe & publish
Summary: resolves T13170 Reviewers: ivica Reviewed By: ivica Subscribers: miljen, iljazovic Maniphest Tasks: T13170 Differential Revision: https://repo.mireo.local/D26728
This commit is contained in:
+4
-4
@@ -19,7 +19,7 @@ void publish_qos0_tcp() {
|
||||
|
||||
c.credentials("test-qos0-tcp", "", "")
|
||||
.brokers("mqtt.mireo.local", 1883)
|
||||
.will({ "test/mqtt-test", "i died",qos_e::at_least_once })
|
||||
.will({ "test/mqtt-test", "Client disconnected!",qos_e::at_least_once })
|
||||
.run();
|
||||
|
||||
c.async_publish<qos_e::at_most_once>(
|
||||
@@ -46,7 +46,7 @@ void publish_qos1_tcp() {
|
||||
|
||||
c.credentials("test-qos1-tcp", "", "")
|
||||
.brokers("mqtt.mireo.local", 1883)
|
||||
.will({ "test/mqtt-test", "i died", qos_e::at_least_once })
|
||||
.will({ "test/mqtt-test", "Client disconnected!", qos_e::at_least_once })
|
||||
.run();
|
||||
|
||||
c.async_publish<qos_e::at_least_once>(
|
||||
@@ -73,7 +73,7 @@ void publish_qos2_tcp() {
|
||||
|
||||
c.credentials("test-qos2-tcp", "", "")
|
||||
.brokers("mqtt.mireo.local", 1883)
|
||||
.will({ "test/mqtt-test", "i died", qos_e::at_least_once })
|
||||
.will({ "test/mqtt-test", "Client disconnected!", qos_e::at_least_once })
|
||||
.run();
|
||||
|
||||
c.async_publish<qos_e::exactly_once>(
|
||||
@@ -101,7 +101,7 @@ void subscribe_and_receive_tcp(int num_receive) {
|
||||
|
||||
c.credentials("test-subscriber-tcp", "", "")
|
||||
.brokers("mqtt.mireo.local", 1883)
|
||||
.will({ "test/mqtt-test", "i died", qos_e::at_least_once })
|
||||
.will({ "test/mqtt-test", "Client disconnected!", qos_e::at_least_once })
|
||||
.run();
|
||||
|
||||
c.async_subscribe(
|
||||
|
||||
Reference in New Issue
Block a user