add debug-incoming-packets option
All checks were successful
Build Docker containers / Build (push) Successful in 42s

This commit is contained in:
2025-04-17 14:22:37 +00:00
parent 18df989fc6
commit 0f4035ec3a

View File

@ -107,6 +107,11 @@ const optionsList = [
type: Boolean,
description: "This option will drop all packets that have 'OK to MQTT' set to false.",
},
{
name: "debug-incoming-packets",
type: Boolean,
description: "This option will print out all known packets as they arrive.",
},
{
name: "drop-portnums-without-bitfield",
type: Number,
@ -225,7 +230,7 @@ const collectorEnabled = {
const decryptionKeys = options["decryption-keys"] ?? [
"1PG7OiApB1nwvP+rz05pAQ==", // add default "AQ==" decryption key
];
const logKnownPacketTypes = false;
const logKnownPacketTypes = options["debug-incoming-packets"] ?? false;
const dropPacketsNotOkToMqtt = options["drop-packets-not-ok-to-mqtt"] ?? false;
const dropPortnumsWithoutBitfield = options["drop-portnums-without-bitfield"] ?? null;
const oldFirmwarePositionPrecision = options["old-firmware-position-precision"] ?? null;