From 70cbc6d48efe7d3bc004bf5a4b8f5b48152ccf5d Mon Sep 17 00:00:00 2001 From: John Kalberer Date: Wed, 3 Apr 2024 20:32:32 -0700 Subject: [PATCH] Revert Describe message change --- package.json | 6 +++--- packages/spark-protocol/package.json | 2 +- packages/spark-protocol/src/clients/Device.ts | 16 +++++++++------- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index e98d4a4..5f35e63 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@brewskey/spark-server", - "version": "1.0.8", + "version": "1.0.10", "license": "AGPL-3.0", "repository": { "type": "git", @@ -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", @@ -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", diff --git a/packages/spark-protocol/package.json b/packages/spark-protocol/package.json index da628b4..e68f239 100644 --- a/packages/spark-protocol/package.json +++ b/packages/spark-protocol/package.json @@ -1,6 +1,6 @@ { "name": "@brewskey/spark-protocol", - "version": "1.0.8", + "version": "1.0.10", "main": "./dist/index.js", "repository": { "type": "git", diff --git a/packages/spark-protocol/src/clients/Device.ts b/packages/spark-protocol/src/clients/Device.ts index 2f48111..8894e27 100644 --- a/packages/spark-protocol/src/clients/Device.ts +++ b/packages/spark-protocol/src/clients/Device.ts @@ -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]), + // }, + // ]); }, ); }