Skip to content

Commit

Permalink
Revert Describe message change
Browse files Browse the repository at this point in the history
  • Loading branch information
jlkalberer committed Apr 4, 2024
1 parent a64b74e commit 70cbc6d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@brewskey/spark-server",
"version": "1.0.8",
"version": "1.0.10",
"license": "AGPL-3.0",
"repository": {
"type": "git",
Expand Down Expand Up @@ -34,7 +34,7 @@
"build:deps": "npx lerna run build",
"build:all": "npm run build:deps && npm run build",
"build:clean": "rimraf ./build",
"build:watch": "tsc --watch src --watch ../spark-protocol/dist --ignore data",
"build:watch": "tsc --watch src --watch ./packages/spark-protocol/dist --ignore data",
"lint": "eslint --fix --max-warnings 0 ./src",
"lint-staged": "lint-staged",
"lint:deps": "npx lerna run lint",
Expand All @@ -43,7 +43,7 @@
"prettify": "prettier --write src/*/**.ts",
"prettify:deps": "npx lerna run prettify",
"start": "nodemon --watch \"src/**\" --ext \"ts,json\" --ignore \"src/**/*.test.ts\" --exec \"ts-node src/main.ts | bunyan\"",
"start:debug": "ts-node ./src/main.ts --watch src --ignore data | bunyan",
"start:debug": "ts-node ./src/main.ts --watch src --watch ./packages/spark-protocol/dist --ignore data | bunyan",
"start:prod": "node ./dist/main.js | bunyan",
"start:warn": "ts-node ./src/main.ts --trace-warnings | bunyan",
"test": "jest",
Expand Down
2 changes: 1 addition & 1 deletion packages/spark-protocol/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@brewskey/spark-protocol",
"version": "1.0.8",
"version": "1.0.10",
"main": "./dist/index.js",
"repository": {
"type": "git",
Expand Down
16 changes: 9 additions & 7 deletions packages/spark-protocol/src/clients/Device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1112,13 +1112,15 @@ class Device extends EventEmitter {
// Because some firmware versions do not send the app + system state
// in a single message, we cannot use `listenFor` and instead have to
// write some hacky code that duplicates a lot of the functionality
this.sendMessage('Describe', null, [
{
// Passing this because it seems like it's required now..?
name: CoapMessage.Option.URI_QUERY,
value: Buffer.from([0x2]),
},
]);
this.sendMessage('Describe');
// Try this later??
// null, [
// {
// // Passing this because it seems like it's required now..?
// name: CoapMessage.Option.URI_QUERY,
// value: Buffer.from([0x2]),
// },
// ]);
},
);
}
Expand Down

0 comments on commit 70cbc6d

Please sign in to comment.