@zwave-js/cc 15.7.0 → 15.8.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.
|
@@ -92,6 +92,10 @@ let NoOperationCCAPI = (() => {
|
|
|
92
92
|
nodeId: this.endpoint.nodeId,
|
|
93
93
|
endpointIndex: this.endpoint.index
|
|
94
94
|
}), {
|
|
95
|
+
// Unless instructed otherwise, don't try too hard to
|
|
96
|
+
// reach the node. Pings are supposed to be short commands
|
|
97
|
+
// and not block the send queue for multiple seconds.
|
|
98
|
+
transmitOptions: import_core.TransmitOptions.ACK,
|
|
95
99
|
...this.commandOptions,
|
|
96
100
|
// Don't retry sending ping packets
|
|
97
101
|
maxSendAttempts: 1,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/cc/NoOperationCC.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
4
|
+
"sourcesContent": ["import {\n\tCommandClasses,\n\tMessagePriority,\n\tTransmitOptions,\n} from \"@zwave-js/core\";\nimport { PhysicalCCAPI } from \"../lib/API.js\";\nimport { CommandClass } from \"../lib/CommandClass.js\";\nimport {\n\tAPI,\n\tcommandClass,\n\timplementedVersion,\n} from \"../lib/CommandClassDecorators.js\";\n\n// @noSetValueAPI This CC has no set-type commands\n// @noInterview There's nothing to interview here\n\n@API(CommandClasses[\"No Operation\"])\nexport class NoOperationCCAPI extends PhysicalCCAPI {\n\tpublic async send(): Promise<void> {\n\t\tawait this.host.sendCommand(\n\t\t\tnew NoOperationCC({\n\t\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t}),\n\t\t\t{\n\t\t\t\t// Unless instructed otherwise, don't try too hard to\n\t\t\t\t// reach the node. Pings are supposed to be short commands\n\t\t\t\t// and not block the send queue for multiple seconds.\n\t\t\t\ttransmitOptions: TransmitOptions.ACK,\n\t\t\t\t...this.commandOptions,\n\t\t\t\t// Don't retry sending ping packets\n\t\t\t\tmaxSendAttempts: 1,\n\t\t\t\t// Pings have their own dedicated priority, since they\n\t\t\t\t// are used to test whether a node is awake/alive\n\t\t\t\tpriority: MessagePriority.Ping,\n\t\t\t},\n\t\t);\n\t}\n}\n\n@commandClass(CommandClasses[\"No Operation\"])\n@implementedVersion(1)\nexport class NoOperationCC extends CommandClass {\n\tdeclare ccCommand: undefined;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAIO;AACP,iBAA8B;AAC9B,0BAA6B;AAC7B,oCAIO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMM,oBAAgB,MAAA;8BAD5B,mCAAI,2BAAe,cAAc,CAAC,CAAC;;;;oBACE;wCAAA,YAAa;WAAA;;;;;;;;AAAnD,mBAAA,MAAA,mBAAA,EAAA,OAAA,WAAA,GAAA,kBAAA,EAAA,MAAA,SAAA,MAAA,WAAA,MAAA,UAAA,UAAA,GAAA,MAAA,uBAAA;;;AAAa,wBAAA,YAAA,uBAAA;;IACL,MAAM,OAAI;AAChB,YAAM,KAAK,KAAK,YACf,IAAI,cAAc;QACjB,QAAQ,KAAK,SAAS;QACtB,eAAe,KAAK,SAAS;OAC7B,GACD;;;;QAIC,iBAAiB,4BAAgB;QACjC,GAAG,KAAK;;QAER,iBAAiB;;;QAGjB,UAAU,4BAAgB;OAC1B;IAEH;;;;IAKY,iBAAa,MAAA;8BAFzB,4CAAa,2BAAe,cAAc,CAAC,OAC3C,kDAAmB,CAAC,CAAC;;;;oBACa;qCAAA,YAAY;WAAA;;;;;;;;AAA/C,mBAAA,MAAA,mBAAA,EAAA,OAAA,WAAA,GAAA,kBAAA,EAAA,MAAA,SAAA,MAAA,WAAA,MAAA,UAAA,UAAA,GAAA,MAAA,uBAAA;;;AAAa,wBAAA,YAAA,uBAAA;;;;;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoOperationCC.d.ts","sourceRoot":"","sources":["../../../src/cc/NoOperationCC.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NoOperationCC.d.ts","sourceRoot":"","sources":["../../../src/cc/NoOperationCC.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAUtD,qBACa,gBAAiB,SAAQ,aAAa;IACrC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAoBlC;AAED,qBAEa,aAAc,SAAQ,YAAY;IACtC,SAAS,EAAE,SAAS,CAAC;CAC7B"}
|
|
@@ -32,7 +32,7 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
32
32
|
}
|
|
33
33
|
return useValue ? value : void 0;
|
|
34
34
|
};
|
|
35
|
-
import { CommandClasses, MessagePriority } from "@zwave-js/core";
|
|
35
|
+
import { CommandClasses, MessagePriority, TransmitOptions, } from "@zwave-js/core";
|
|
36
36
|
import { PhysicalCCAPI } from "../lib/API.js";
|
|
37
37
|
import { CommandClass } from "../lib/CommandClass.js";
|
|
38
38
|
import { API, commandClass, implementedVersion, } from "../lib/CommandClassDecorators.js";
|
|
@@ -58,6 +58,10 @@ let NoOperationCCAPI = (() => {
|
|
|
58
58
|
nodeId: this.endpoint.nodeId,
|
|
59
59
|
endpointIndex: this.endpoint.index,
|
|
60
60
|
}), {
|
|
61
|
+
// Unless instructed otherwise, don't try too hard to
|
|
62
|
+
// reach the node. Pings are supposed to be short commands
|
|
63
|
+
// and not block the send queue for multiple seconds.
|
|
64
|
+
transmitOptions: TransmitOptions.ACK,
|
|
61
65
|
...this.commandOptions,
|
|
62
66
|
// Don't retry sending ping packets
|
|
63
67
|
maxSendAttempts: 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoOperationCC.js","sourceRoot":"","sources":["../../../src/cc/NoOperationCC.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"NoOperationCC.js","sourceRoot":"","sources":["../../../src/cc/NoOperationCC.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EACN,cAAc,EACd,eAAe,EACf,eAAe,GACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EACN,GAAG,EACH,YAAY,EACZ,kBAAkB,GAClB,MAAM,kCAAkC,CAAC;AAE1C,kDAAkD;AAClD,iDAAiD;IAGpC,gBAAgB;4BAD5B,GAAG,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;;;;sBACE,aAAa;gCAArB,SAAQ,WAAa;;;;YAAnD,6KAqBC;;;YArBY,uDAAgB;;QACrB,KAAK,CAAC,IAAI;YAChB,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,CAC1B,IAAI,aAAa,CAAC;gBACjB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM;gBAC5B,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK;aAClC,CAAC,EACF;gBACC,qDAAqD;gBACrD,0DAA0D;gBAC1D,qDAAqD;gBACrD,eAAe,EAAE,eAAe,CAAC,GAAG;gBACpC,GAAG,IAAI,CAAC,cAAc;gBACtB,mCAAmC;gBACnC,eAAe,EAAE,CAAC;gBAClB,sDAAsD;gBACtD,iDAAiD;gBACjD,QAAQ,EAAE,eAAe,CAAC,IAAI;aAC9B,CACD,CAAC;QACH,CAAC;;;;SApBW,gBAAgB;IAyBhB,aAAa;4BAFzB,YAAY,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,EAC5C,kBAAkB,CAAC,CAAC,CAAC;;;;sBACa,YAAY;6BAApB,SAAQ,WAAY;;;;YAA/C,6KAEC;;;YAFY,uDAAa;;;;;SAAb,aAAa"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zwave-js/cc",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.8.0",
|
|
4
4
|
"description": "zwave-js: Command Classes",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"publishConfig": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@zwave-js/core": "15.7.0",
|
|
74
|
-
"@zwave-js/host": "15.
|
|
74
|
+
"@zwave-js/host": "15.8.0",
|
|
75
75
|
"@zwave-js/shared": "15.7.0",
|
|
76
76
|
"alcalzone-shared": "^5.0.0",
|
|
77
77
|
"ansi-colors": "^4.1.3",
|