From 5f7383b3dc1a02e82e6ae86c8f3c70cc31aef9e4 Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Thu, 10 Oct 2024 11:32:28 -0400 Subject: [PATCH] Pevent missing `packet.to` from crashing Log UI #19 --- api/src/vars.ts | 9 ++++++--- electron/package.json | 2 +- ui/src/Log.svelte | 9 ++++++--- ui/src/lib/util.ts | 40 +++++++++++++++++++++++++++++++++++++++- 4 files changed, 52 insertions(+), 8 deletions(-) diff --git a/api/src/vars.ts b/api/src/vars.ts index b8cfb0e..6809a1d 100644 --- a/api/src/vars.ts +++ b/api/src/vars.ts @@ -93,6 +93,7 @@ export type DeviceMetrics = { voltage: number channelUtilization: number airUtilTx: number + uptimeSeconds?: number } export type NodeInfo = { @@ -132,7 +133,7 @@ export type MeshPacket = { channel: number encrypted?: string decoded?: any - payloadVariant: any + payloadVariant?: any // { // case: 'decoded', // value: Data { @@ -150,11 +151,13 @@ export type MeshPacket = { rxSnr: number hopLimit: number wantAck: boolean - priority: number + priority: any rxRssi: number - delayed: number + delayed: any viaMqtt: boolean hopStart: number + publicKey?: string + pkiEncrypted?: boolean data?: string message?: Message deviceMetrics?: DeviceMetrics diff --git a/electron/package.json b/electron/package.json index 6f11192..ab311b0 100644 --- a/electron/package.json +++ b/electron/package.json @@ -1,6 +1,6 @@ { "name": "meshsense", - "version": "1.0.15-beta.2", + "version": "1.0.15-beta.3", "description": "MeshSense is a simple, open-source application that monitors, maps and graphically displays all the vital stats of your area's Meshtastic network including connected nodes, signal reports, trace routes and more!", "main": "./out/main/index.js", "author": "Affirmatech Inc.", diff --git a/ui/src/Log.svelte b/ui/src/Log.svelte index 066e4dc..6cdc2f7 100644 --- a/ui/src/Log.svelte +++ b/ui/src/Log.svelte @@ -1,7 +1,7 @@