diff --git a/package.json b/package.json index eff7f17d..8326fe43 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "lint": "prettier --check \"src/**/*.{js,jsx,ts,tsx}\"" }, "dependencies": { - "@meshtastic/meshtasticjs": "^0.6.6", + "@meshtastic/meshtasticjs": "^0.6.9", "add": "^2.0.6", "react": "^17.0.0", "react-dom": "^17.0.0", diff --git a/src/App.tsx b/src/App.tsx index bd17cc1d..e8012bfc 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -78,7 +78,7 @@ const App = () => { setConnection(connection); // connection.connect(window.location.hostname, undefined, true); connection.connect({ - address: '192.168.13.71', + address: '192.168.1.103', receiveBatchRequests: false, tls: false, fetchInterval: 2000, @@ -124,13 +124,11 @@ const App = () => { } break; - // case 'getChannelResponse': - // if (adminMessage.data.variant.getChannelResponse) { - // setChannels((channels) => [ - // ...channels, - // adminMessage.data.variant.getChannelResponse, - // ]); - // } + case 'getChannelResponse': + if (adminMessage.data.variant.getChannelResponse) { + let message = adminMessage.data.variant.getChannelResponse; + setChannels((channels) => [...channels, message]); + } default: break; diff --git a/yarn.lock b/yarn.lock index cec61768..6e6e0f5a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -213,10 +213,10 @@ dependencies: purgecss "^3.1.3" -"@meshtastic/meshtasticjs@^0.6.6": - version "0.6.6" - resolved "https://registry.yarnpkg.com/@meshtastic/meshtasticjs/-/meshtasticjs-0.6.6.tgz#e29aa995dd540512f5e46b0302553c6210da5ad5" - integrity sha512-g0YZaPsVbhRTTLMCoxXhEzYNcPmNmZTP4hWRwQZd6cgoJ+AHIH9g1aJ0q2x9JBGQyhjCnNvhab6LALCGuAAdKA== +"@meshtastic/meshtasticjs@^0.6.9": + version "0.6.9" + resolved "https://registry.yarnpkg.com/@meshtastic/meshtasticjs/-/meshtasticjs-0.6.9.tgz#41b3bad1fba2b1f0b1a2c86ed1f1db4907271a0b" + integrity sha512-o62NzVMLejs5thdbu8YXXdZ523aOxPX6FWfw6noWTVbnLhYxvpltOtcOveI4iPMRk9JGid4KcwehBUvbQi4Sag== dependencies: "@protobuf-ts/runtime" "^2.0.0-alpha.21" rxjs "^6.6.7"