Skip to content

Commit b8250d4

Browse files
committed
pass through publish flags
1 parent f3ff249 commit b8250d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/network/mqtt/mqttconnection/mqttconnection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ class Connection {
7171

7272
mqtt?.close();
7373
}
74-
publish(topic, data) {
74+
publish(topic, data, flags) {
7575
if (!this.#ready)
7676
throw new Error;
7777

7878
try {
79-
return this.#mqtt.publish(topic, data);
79+
return this.#mqtt.publish(topic, data, flags);
8080
}
8181
catch (e) {
8282
this.#restart();

0 commit comments

Comments
 (0)