Skip to content

Commit 3415737

Browse files
committed
Clean option on connect
1 parent 68ab194 commit 3415737

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arduino-iot-client-mqtt/arduino-iot-client-mqtt.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ class ArduinoClientMqtt {
9999
properties: {},
100100
protocolVersion: 4,
101101
connectTimeout: 30000,
102-
keepalive: 30
102+
keepalive: 30,
103+
clean: true
103104
};
104105

105106
const client = mqtt.connect('wss://' + this.opts.host + ':' + this.opts.port + '/mqtt', connectionOpts);

0 commit comments

Comments
 (0)