mm_os 3.1.9 → 3.2.0
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
|
@@ -123,14 +123,14 @@ MQTT.prototype.match = function(topic, top) {
|
|
|
123
123
|
MQTT.prototype.update_after = async function() {
|
|
124
124
|
var _this = this;
|
|
125
125
|
var list = this.list;
|
|
126
|
-
for (var i = 0
|
|
126
|
+
for (var i = 0; i < list.length; i++) {
|
|
127
127
|
if (o.config.state === 1) {
|
|
128
128
|
o.send = function(topic, msg, qos = 0, retain = false) {
|
|
129
129
|
if (topic) {
|
|
130
130
|
_this.send(topic, msg, qos, retain);
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
|
-
await o.exec('init');
|
|
133
|
+
// await o.exec('init');
|
|
134
134
|
var topics = o.config.topic;
|
|
135
135
|
if (topics) {
|
|
136
136
|
for (var n = 0; n < topics.length; n++) {
|