@zimo-elektronik/zcan 1.0.4 → 1.0.5
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.
|
@@ -40,8 +40,8 @@ export default class NetworkGroup {
|
|
|
40
40
|
this.onPingResponse.next({
|
|
41
41
|
connected: this.mx10.connected,
|
|
42
42
|
});
|
|
43
|
-
console.log('No ping for
|
|
44
|
-
},
|
|
43
|
+
console.log('No ping for 2 seconds, disconnected');
|
|
44
|
+
}, 2000);
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
47
|
throw new Error('LENGTH ERROR: readCmdGrp_0x0A-0x0A, read length as: ' +
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "https://github.com/ZIMO-Elektronik/zcan",
|
|
8
|
-
"version": "1.0.
|
|
8
|
+
"version": "1.0.5",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"start": "node dist/main.js",
|
|
11
11
|
"start:dev": "nodemon --ext js,ts,json,env --exec \"node --experimental-specifier-resolution=node --loader ts-node/esm\" src/main.ts",
|
package/src/zcan/networkGroup.ts
CHANGED
|
@@ -76,8 +76,8 @@ export default class NetworkGroup {
|
|
|
76
76
|
connected: this.mx10.connected,
|
|
77
77
|
});
|
|
78
78
|
// eslint-disable-next-line no-console
|
|
79
|
-
console.log('No ping for
|
|
80
|
-
},
|
|
79
|
+
console.log('No ping for 2 seconds, disconnected');
|
|
80
|
+
}, 2000);
|
|
81
81
|
} else {
|
|
82
82
|
throw new Error(
|
|
83
83
|
'LENGTH ERROR: readCmdGrp_0x0A-0x0A, read length as: ' +
|