mm_os 2.2.3 → 2.2.4

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.
@@ -83,6 +83,14 @@ class MQTT extends Index {
83
83
  }
84
84
  }
85
85
 
86
+ /**
87
+ * 设置配置
88
+ * @param {Object} config 配置
89
+ */
90
+ MQTT.prototype.set_config = function(config) {
91
+ Object.assign(this.config, config);
92
+ }
93
+
86
94
  /**
87
95
  * 主题匹配
88
96
  * @param {String} topic 接收到的主题
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_os",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "description": "这是超级美眉服务端框架,用于快速构建应用程序。",
5
5
  "main": "index.js",
6
6
  "scripts": {