mm_os 2.5.3 → 2.5.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.
@@ -454,9 +454,7 @@ MQTT.prototype.update_online = async function() {
454
454
  var dict = list[i].drives;
455
455
  for (var clientid in dict) {
456
456
  var o = dict[clientid];
457
- if (o.online === 0) {
458
- list_offline.push(clientid);
459
- } else {
457
+ if (o.online === 1) {
460
458
  if (o.time_last) {
461
459
  var cha = now - o.time_last;
462
460
  if (cha > online_expires) {
@@ -469,6 +467,8 @@ MQTT.prototype.update_online = async function() {
469
467
  } else {
470
468
  list_online.push(clientid);
471
469
  }
470
+ } else {
471
+ list_offline.push(clientid);
472
472
  }
473
473
  }
474
474
  }
@@ -66,8 +66,7 @@
66
66
  // 协议头
67
67
  "protocol": "mqtt",
68
68
  // MQTT服务器地址
69
- "hostname": "mqtt.aieliantong.com",
70
- // "hostname": "127.0.0.1",
69
+ "hostname": "127.0.0.1",
71
70
  // MQTT服务器用户名
72
71
  "username": "developer",
73
72
  // MQTT服务器密码
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_os",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "这是超级美眉服务端框架,用于快速构建应用程序。",
5
5
  "main": "index.js",
6
6
  "scripts": {