@matter/examples 0.12.0-alpha.0-20250116-1917244e0 → 0.12.0-alpha.0-20250121-0ab1b29a1
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.
|
@@ -16,7 +16,7 @@ const environment = Environment.default;
|
|
|
16
16
|
if (environment.vars.get("ble")) {
|
|
17
17
|
Ble.get = singleton(
|
|
18
18
|
() => new NodeJsBle({
|
|
19
|
-
hciId: environment.vars.number("ble
|
|
19
|
+
hciId: environment.vars.number("ble.hci.id")
|
|
20
20
|
})
|
|
21
21
|
);
|
|
22
22
|
}
|
|
@@ -60,10 +60,10 @@ class ControllerNode {
|
|
|
60
60
|
let ble = false;
|
|
61
61
|
if (environment.vars.get("ble")) {
|
|
62
62
|
ble = true;
|
|
63
|
-
const wifiSsid = environment.vars.string("ble
|
|
64
|
-
const wifiCredentials = environment.vars.string("ble
|
|
65
|
-
const threadNetworkName = environment.vars.string("ble
|
|
66
|
-
const threadOperationalDataset = environment.vars.string("ble
|
|
63
|
+
const wifiSsid = environment.vars.string("ble.wifi.ssid");
|
|
64
|
+
const wifiCredentials = environment.vars.string("ble.wifi.credentials");
|
|
65
|
+
const threadNetworkName = environment.vars.string("ble.thread.networkname");
|
|
66
|
+
const threadOperationalDataset = environment.vars.string("ble.thread.operationaldataset");
|
|
67
67
|
if (wifiSsid !== void 0 && wifiCredentials !== void 0) {
|
|
68
68
|
logger.info(`Registering Commissioning over BLE with WiFi: ${wifiSsid}`);
|
|
69
69
|
commissioningOptions.wifiNetwork = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matter/examples",
|
|
3
|
-
"version": "0.12.0-alpha.0-
|
|
3
|
+
"version": "0.12.0-alpha.0-20250121-0ab1b29a1",
|
|
4
4
|
"description": "Matter.js examples and reference implementations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iot",
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"matter-controller": "dist/esm/controller/ControllerNode.js"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@matter/main": "0.12.0-alpha.0-
|
|
56
|
-
"@matter/nodejs": "0.12.0-alpha.0-
|
|
57
|
-
"@matter/tools": "0.12.0-alpha.0-
|
|
55
|
+
"@matter/main": "0.12.0-alpha.0-20250121-0ab1b29a1",
|
|
56
|
+
"@matter/nodejs": "0.12.0-alpha.0-20250121-0ab1b29a1",
|
|
57
|
+
"@matter/tools": "0.12.0-alpha.0-20250121-0ab1b29a1",
|
|
58
58
|
"esbuild": "^0.24.2"
|
|
59
59
|
},
|
|
60
60
|
"optionalDependencies": {
|
|
61
|
-
"@matter/nodejs-ble": "0.12.0-alpha.0-
|
|
61
|
+
"@matter/nodejs-ble": "0.12.0-alpha.0-20250121-0ab1b29a1"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=18.0.0"
|
|
@@ -28,7 +28,7 @@ if (environment.vars.get("ble")) {
|
|
|
28
28
|
Ble.get = singleton(
|
|
29
29
|
() =>
|
|
30
30
|
new NodeJsBle({
|
|
31
|
-
hciId: environment.vars.number("ble
|
|
31
|
+
hciId: environment.vars.number("ble.hci.id"),
|
|
32
32
|
}),
|
|
33
33
|
);
|
|
34
34
|
}
|
|
@@ -101,10 +101,10 @@ class ControllerNode {
|
|
|
101
101
|
let ble = false;
|
|
102
102
|
if (environment.vars.get("ble")) {
|
|
103
103
|
ble = true;
|
|
104
|
-
const wifiSsid = environment.vars.string("ble
|
|
105
|
-
const wifiCredentials = environment.vars.string("ble
|
|
106
|
-
const threadNetworkName = environment.vars.string("ble
|
|
107
|
-
const threadOperationalDataset = environment.vars.string("ble
|
|
104
|
+
const wifiSsid = environment.vars.string("ble.wifi.ssid");
|
|
105
|
+
const wifiCredentials = environment.vars.string("ble.wifi.credentials");
|
|
106
|
+
const threadNetworkName = environment.vars.string("ble.thread.networkname");
|
|
107
|
+
const threadOperationalDataset = environment.vars.string("ble.thread.operationaldataset");
|
|
108
108
|
if (wifiSsid !== undefined && wifiCredentials !== undefined) {
|
|
109
109
|
logger.info(`Registering Commissioning over BLE with WiFi: ${wifiSsid}`);
|
|
110
110
|
commissioningOptions.wifiNetwork = {
|