提交 bf54b32532d03129c654a857354e4185674897a9

作者 mq_online_test
1 个父辈 8227f75a

add cleansession set demo for js

... ... @@ -33,6 +33,7 @@
33 33 timeout: 3,
34 34 onSuccess: onConnect,
35 35 mqttVersion: 4,
  36 + cleanSession: cleansession,
36 37 onFailure: function (message) {
37 38 setTimeout(MQTTconnect, reconnectTimeout);
38 39 }
... ...
... ... @@ -33,6 +33,7 @@
33 33 timeout: 3,
34 34 onSuccess: onConnect,
35 35 mqttVersion: 4,
  36 + cleanSession: cleansession,
36 37 onFailure: function (message) {
37 38 setTimeout(MQTTconnect, reconnectTimeout);
38 39 }
... ...