mm_os 3.1.7 → 3.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/com/mqtt/index.js +2 -2
- package/package.json +1 -1
package/core/com/mqtt/index.js
CHANGED
|
@@ -133,8 +133,8 @@ MQTT.prototype.update_after = async function() {
|
|
|
133
133
|
await o.exec('init');
|
|
134
134
|
var topics = o.config.topic;
|
|
135
135
|
if (topics) {
|
|
136
|
-
for (var
|
|
137
|
-
var tc = topics[
|
|
136
|
+
for (var n = 0; n < topics.length; n++) {
|
|
137
|
+
var tc = topics[n];
|
|
138
138
|
var retain = o.config.retain || false;
|
|
139
139
|
var qos = o.config.qos || 0;
|
|
140
140
|
if (tc.indexOf("heartbeat") !== -1) {
|