Skip to content

Commit

Permalink
Bump schema and embedded socket client (#66)
Browse files Browse the repository at this point in the history
* Socket & LR

* Fix Versions

* Nullable Fix

* Fix & Test

* Show Embedded runtime Driver console output during debug
  • Loading branch information
marcus-j-davies authored May 1, 2024
1 parent 7a4332e commit fd41e0a
Show file tree
Hide file tree
Showing 78 changed files with 2,065 additions and 5,989 deletions.
10 changes: 5 additions & 5 deletions PSI/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"name": "server",
"bin": "./server.js",
"dependencies": {
"@zwave-js/server": "1.34.0",
"zwave-js": "12.4.4"
"@zwave-js/server": "1.35.0",
"zwave-js": "12.5.6"
},
"devDependencies": {
"@yao-pkg/pkg": "^5.11.4",
"esbuild": "^0.20.1"
"@yao-pkg/pkg": "^5.11.5",
"esbuild": "^0.20.2"
},
"scripts": {
"build": "npm run do_esbuild && npm run do_pkgbuild",
"do_esbuild": "esbuild server_source.js --bundle --outfile=server.js --platform=node --target=node18 --external:@serialport/* --external:@zwave-js/config --external:zwave-js/package.json",
"do_pkgbuild": "pkg . --compress Brotli -t host --targets node18"
"do_pkgbuild": "pkg . --compress gzip -t host --targets node18"
},
"pkg": {
"assets": "./node_modules/@serialport/bindings-cpp/prebuilds/**/*",
Expand Down
9 changes: 9 additions & 0 deletions PSI/server_source.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ if (driverOptions.securityKeys) {
}
}

if (driverOptions.securityKeysLongRange) {
for (const key of Object.keys(driverOptions.securityKeysLongRange)) {
driverOptions.securityKeysLongRange[key] = Buffer.from(
driverOptions.securityKeysLongRange[key],
"hex"
);
}
}

const driver = new Driver(serialPort, driverOptions);
const server = new ZwavejsServer(driver, { port: wsPort, host: "localhost" });
server.on("listening",() =>{
Expand Down
Binary file removed Toolkit.PNG
Binary file not shown.
15 changes: 0 additions & 15 deletions Visual Studio Projects/ZWaveJS.NET/Debug/Debug.csproj

This file was deleted.

36 changes: 0 additions & 36 deletions Visual Studio Projects/ZWaveJS.NET/Debug/Program.cs

This file was deleted.

This file was deleted.

128 changes: 0 additions & 128 deletions Visual Studio Projects/ZWaveJS.NET/Demo Application/Associations.cs

This file was deleted.

Loading

0 comments on commit fd41e0a

Please sign in to comment.