From 9c74130db5f08b9cb01b7c064c9715239e7492c9 Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Mon, 20 May 2024 11:17:21 +0800 Subject: [PATCH 1/2] Add 257 ATAK_FORWARDER to ignored packet types 72 ATAK_PLUGIN was already ignored by Meshtastic Map. This patch adds 257 ATAK_FORWARDER to the list of ignored packets. --- src/mqtt.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mqtt.js b/src/mqtt.js index 4c3262e..683cfaf 100644 --- a/src/mqtt.js +++ b/src/mqtt.js @@ -720,6 +720,7 @@ client.on("message", async (topic, message) => { || portnum === 65 // ignore STORE_FORWARD_APP || portnum === 66 // ignore RANGE_TEST_APP || portnum === 72 // ignore ATAK_PLUGIN + || portnum === 257 // ignore ATAK_FORWARDER ){ return; } From a07ce17dcec53c9105fff49a12a63a15f713820c Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Mon, 20 May 2024 11:47:42 +0800 Subject: [PATCH 2/2] Ignore packets above max portnum (511) Meshtastic defines the maximum PortNum as 511. https://buf.build/meshtastic/protobufs/docs/main:meshtastic Packets using a PortNum above this are not currently useful for mapping - ignore them for now. --- src/mqtt.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mqtt.js b/src/mqtt.js index 683cfaf..007c644 100644 --- a/src/mqtt.js +++ b/src/mqtt.js @@ -721,6 +721,7 @@ client.on("message", async (topic, message) => { || portnum === 66 // ignore RANGE_TEST_APP || portnum === 72 // ignore ATAK_PLUGIN || portnum === 257 // ignore ATAK_FORWARDER + || portnum > 511 // ignore above MAX ){ return; }