@matter/nodejs-shell 0.12.5 → 0.13.0-alpha.0-20250304-d4a7592a4
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/README.md +2 -2
- package/dist/cjs/shell/cmd_config.js +3 -3
- package/package.json +6 -6
- package/src/shell/cmd_config.ts +3 -3
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ There are other parameters available to enable BLE and define the HCI device to
|
|
|
33
33
|
Please note the extra `--` to separate the npm parameters from the shell parameters!
|
|
34
34
|
|
|
35
35
|
## matter.js v0.11 Storage adjustment!
|
|
36
|
-
In matter.js 0.11 we adjusted the storage to the new environment based one. This means that by default the storage is in the user directory in .matter/shell-XX where XX is the
|
|
36
|
+
In matter.js 0.11 we adjusted the storage to the new environment based one. This means that by default the storage is in the user directory in .matter/shell-XX where XX is the nodeNum you provided as parameter. You can adjust the storage base location with "--storage-path=..." as parameter.
|
|
37
37
|
|
|
38
38
|
To use a former storage you can use "--legacyStorage" and the storage will be in the .matter-shell-XX directory in the local directory as before.
|
|
39
39
|
To manually convert a storage you can follow the following steps. The described steps assume ./.matter-shell-XX is the old storage and ~/.matter/shell-XX is the new storage location.
|
|
@@ -111,7 +111,7 @@ You can also define the node id to pair the device by providing this ID as param
|
|
|
111
111
|
|
|
112
112
|
You can commission multiple nodes to the controller.
|
|
113
113
|
|
|
114
|
-
After a
|
|
114
|
+
After a successful commissioning the shell outputs the device name and some information and automatically described to the node and logs potential updates.
|
|
115
115
|
|
|
116
116
|
### List commissioned nodes
|
|
117
117
|
|
|
@@ -247,7 +247,7 @@ async function doLogfilePath(theNode, args) {
|
|
|
247
247
|
break;
|
|
248
248
|
case "delete":
|
|
249
249
|
await theNode.Store.delete("LogFile");
|
|
250
|
-
console.log(`LogFile path removed. Please restart the shell for
|
|
250
|
+
console.log(`LogFile path removed. Please restart the shell for the changes to take effect.`);
|
|
251
251
|
break;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
@@ -286,11 +286,11 @@ async function doBleHci(theNode, args) {
|
|
|
286
286
|
return;
|
|
287
287
|
}
|
|
288
288
|
await theNode.Store.set("BleHciId", value);
|
|
289
|
-
console.log(`New HCI ID:" ${value}". Please restart the shell for
|
|
289
|
+
console.log(`New HCI ID:" ${value}". Please restart the shell for the changes to take effect.`);
|
|
290
290
|
break;
|
|
291
291
|
case "delete":
|
|
292
292
|
await theNode.Store.delete("BleHciId");
|
|
293
|
-
console.log(`BLE HCI ID reset to default (0). Please restart the shell for
|
|
293
|
+
console.log(`BLE HCI ID reset to default (0). Please restart the shell for the changes to take effect.`);
|
|
294
294
|
break;
|
|
295
295
|
}
|
|
296
296
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matter/nodejs-shell",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0-alpha.0-20250304-d4a7592a4",
|
|
4
4
|
"description": "Shell app for Matter controller",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iot",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"#types": "@matter/types"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@matter/general": "0.
|
|
40
|
-
"@matter/nodejs": "0.
|
|
41
|
-
"@matter/nodejs-ble": "0.
|
|
42
|
-
"@matter/tools": "0.
|
|
43
|
-
"@project-chip/matter.js": "0.
|
|
39
|
+
"@matter/general": "0.13.0-alpha.0-20250304-d4a7592a4",
|
|
40
|
+
"@matter/nodejs": "0.13.0-alpha.0-20250304-d4a7592a4",
|
|
41
|
+
"@matter/nodejs-ble": "0.13.0-alpha.0-20250304-d4a7592a4",
|
|
42
|
+
"@matter/tools": "0.13.0-alpha.0-20250304-d4a7592a4",
|
|
43
|
+
"@project-chip/matter.js": "0.13.0-alpha.0-20250304-d4a7592a4",
|
|
44
44
|
"yargs": "^17.7.2"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
package/src/shell/cmd_config.ts
CHANGED
|
@@ -281,7 +281,7 @@ async function doLogfilePath(
|
|
|
281
281
|
break;
|
|
282
282
|
case "delete":
|
|
283
283
|
await theNode.Store.delete("LogFile");
|
|
284
|
-
console.log(`LogFile path removed. Please restart the shell for
|
|
284
|
+
console.log(`LogFile path removed. Please restart the shell for the changes to take effect.`);
|
|
285
285
|
break;
|
|
286
286
|
}
|
|
287
287
|
}
|
|
@@ -334,11 +334,11 @@ async function doBleHci(
|
|
|
334
334
|
return;
|
|
335
335
|
}
|
|
336
336
|
await theNode.Store.set("BleHciId", value);
|
|
337
|
-
console.log(`New HCI ID:" ${value}". Please restart the shell for
|
|
337
|
+
console.log(`New HCI ID:" ${value}". Please restart the shell for the changes to take effect.`);
|
|
338
338
|
break;
|
|
339
339
|
case "delete":
|
|
340
340
|
await theNode.Store.delete("BleHciId");
|
|
341
|
-
console.log(`BLE HCI ID reset to default (0). Please restart the shell for
|
|
341
|
+
console.log(`BLE HCI ID reset to default (0). Please restart the shell for the changes to take effect.`);
|
|
342
342
|
break;
|
|
343
343
|
}
|
|
344
344
|
}
|