From 22e97b0eecb34c506600a394c64bd9d28f4f42be Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sat, 18 Oct 2025 16:54:26 -0700 Subject: [PATCH] Update udp.py --- modules/udp.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/modules/udp.py b/modules/udp.py index f7520f7..3658947 100644 --- a/modules/udp.py +++ b/modules/udp.py @@ -93,4 +93,26 @@ def main(): finally: mudpInterface.stop() if __name__ == "__main__": - main() \ No newline at end of file + main() + + +# Meshtastic Port Numbers Reference: +# | Port Number | Name | Purpose | +# |-------------|------------------------|--------------------------------| +# | 1 | TEXT_MESSAGE_APP | Text messages | +# | 2 | POSITION_APP | Position updates (GPS) | +# | 3 | ROUTING_APP | Routing info | +# | 4 | NODEINFO_APP | Node info (name, id, etc) | +# | 5 | TELEMETRY_APP | Telemetry (battery, sensors) | +# | 6 | SERIAL_APP | Serial data | +# | 7 | ENVIRONMENTAL_APP | Environmental sensors | +# | 8 | REMOTE_HARDWARE_APP | Remote hardware control | +# | 9 | STORE_FORWARD_APP | Store and forward | +# | 10 | RANGE_TEST_APP | Range test | +# | 11 | ADMIN_APP | Admin/config | +# | 12 | WAYPOINT_APP | Waypoints | +# | 13 | CHANNEL_NODEINFO_APP | Channel node info | +# | 256 | PRIVATE_APP | Private app (custom use) | +# See: https://github.com/meshtastic/protobufs/blob/main/meshtastic/protobuf/portnums.proto + +