From 55ae11f11ffeea12e701cf91a256896f2d76a5e2 Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Tue, 23 Dec 2025 23:51:34 -0600 Subject: [PATCH] Steal the compressed text portnum for Store and Forward++ Ran into a blocker in a test deployment, that the mesh was set to ignore non-standard ports. Interesting problems require interesting solutions. --- meshtastic/portnums.proto | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/meshtastic/portnums.proto b/meshtastic/portnums.proto index 221f113..80f0246 100644 --- a/meshtastic/portnums.proto +++ b/meshtastic/portnums.proto @@ -75,13 +75,15 @@ enum PortNum { ADMIN_APP = 6; /* - * Compressed TEXT_MESSAGE payloads. - * ENCODING: UTF-8 Plaintext (?) with Unishox2 Compression - * NOTE: The Device Firmware converts a TEXT_MESSAGE_APP to TEXT_MESSAGE_COMPRESSED_APP if the compressed - * payload is shorter. There's no need for app developers to do this themselves. Also the firmware will decompress - * any incoming TEXT_MESSAGE_COMPRESSED_APP payload and convert to TEXT_MESSAGE_APP. + * Store and Forward++ module included in the firmware + * ENCODING: protobuf + * This module is specifically for Native Linux nodes, and provides a Git-style + * chain of messages. + * + * NOTE: This is re-purposing the old compressed text messages portnum. + * Nothing is being done with this portnum, and it's still considered a core portnum */ - TEXT_MESSAGE_COMPRESSED_APP = 7; + STORE_FORWARD_PLUSPLUS_APP = 7; /* * Waypoint payloads. @@ -134,14 +136,6 @@ enum PortNum { */ PAXCOUNTER_APP = 34; - /* - * Store and Forward++ module included in the firmware - * ENCODING: protobuf - * This module is specifically for Native Linux nodes, and provides a Git-style - * chain of messages. - */ - STORE_FORWARD_PLUSPLUS_APP = 35; - /* * Provides a hardware serial interface to send and receive from the Meshtastic network. * Connect to the RX/TX pins of a device with 38400 8N1. Packets received from the Meshtastic