Browse Source

Updates

pull/1/head
Sacha Weatherstone 5 years ago
parent
commit
a9d726cf5d
  1. 2
      package.json
  2. 14
      src/App.tsx
  3. 8
      yarn.lock

2
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",

14
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;

8
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"

Loading…
Cancel
Save