2023-01-18 13:42:53 +00:00
|
|
|
/* Automatically generated nanopb header */
|
|
|
|
/* Generated by nanopb-0.4.7 */
|
|
|
|
|
|
|
|
#ifndef PB_MESHTASTIC_MESHTASTIC_PORTNUMS_PB_H_INCLUDED
|
|
|
|
#define PB_MESHTASTIC_MESHTASTIC_PORTNUMS_PB_H_INCLUDED
|
|
|
|
#include <pb.h>
|
|
|
|
|
|
|
|
#if PB_PROTO_HEADER_VERSION != 40
|
|
|
|
#error Regenerate this file with the current version of nanopb generator.
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Enum definitions */
|
|
|
|
/* For any new 'apps' that run on the device or via sister apps on phones/PCs they should pick and use a
|
|
|
|
unique 'portnum' for their application.
|
|
|
|
If you are making a new app using meshtastic, please send in a pull request to add your 'portnum' to this
|
|
|
|
master table.
|
|
|
|
PortNums should be assigned in the following range:
|
|
|
|
0-63 Core Meshtastic use, do not use for third party apps
|
|
|
|
64-127 Registered 3rd party apps, send in a pull request that adds a new entry to portnums.proto to register your application
|
|
|
|
256-511 Use one of these portnums for your private applications that you don't want to register publically
|
|
|
|
All other values are reserved.
|
|
|
|
Note: This was formerly a Type enum named 'typ' with the same id #
|
|
|
|
We have change to this 'portnum' based scheme for specifying app handlers for particular payloads.
|
|
|
|
This change is backwards compatible by treating the legacy OPAQUE/CLEAR_TEXT values identically. */
|
2023-01-21 17:22:19 +00:00
|
|
|
typedef enum _meshtastic_PortNum {
|
2023-01-18 13:42:53 +00:00
|
|
|
/* Deprecated: do not use in new code (formerly called OPAQUE)
|
|
|
|
A message sent from a device outside of the mesh, in a form the mesh does not understand
|
|
|
|
NOTE: This must be 0, because it is documented in IMeshService.aidl to be so */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_UNKNOWN_APP = 0,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* A simple UTF-8 text message, which even the little micros in the mesh
|
|
|
|
can understand and show on their screen eventually in some circumstances
|
|
|
|
even signal might send messages in this form (see below) */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_TEXT_MESSAGE_APP = 1,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* Reserved for built-in GPIO/example app.
|
|
|
|
See remote_hardware.proto/HardwareMessage for details on the message sent/received to this port number */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_REMOTE_HARDWARE_APP = 2,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* The built-in position messaging app.
|
|
|
|
Payload is a [Position](/docs/developers/protobufs/api#position) message */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_POSITION_APP = 3,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* The built-in user info app.
|
|
|
|
Payload is a [User](/docs/developers/protobufs/api#user) message */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_NODEINFO_APP = 4,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* Protocol control packets for mesh protocol use.
|
|
|
|
Payload is a [Routing](/docs/developers/protobufs/api#routing) message */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_ROUTING_APP = 5,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* Admin control packets.
|
|
|
|
Payload is a [AdminMessage](/docs/developers/protobufs/api#adminmessage) message */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_ADMIN_APP = 6,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* Compressed TEXT_MESSAGE payloads. */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_TEXT_MESSAGE_COMPRESSED_APP = 7,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* Waypoint payloads.
|
|
|
|
Payload is a [Waypoint](/docs/developers/protobufs/api#waypoint) message */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_WAYPOINT_APP = 8,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* Audio Payloads.
|
|
|
|
Encapsulated codec2 packets. On 2.4 GHZ Bandwidths only for now */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_AUDIO_APP = 9,
|
2023-07-09 01:37:04 +00:00
|
|
|
/* Payloads for clients with a network connection proxying MQTT pub/sub to the device */
|
|
|
|
meshtastic_PortNum_MQTT_CLIENT_PROXY_APP = 10,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* Provides a 'ping' service that replies to any packet it receives.
|
|
|
|
Also serves as a small example module. */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_REPLY_APP = 32,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* Used for the python IP tunnel feature */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_IP_TUNNEL_APP = 33,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* 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
|
|
|
|
network is forwarded to the RX pin while sending a packet to TX will go out to the Mesh network.
|
|
|
|
Maximum packet size of 240 bytes.
|
|
|
|
Module is disabled by default can be turned on by setting SERIAL_MODULE_ENABLED = 1 in SerialPlugh.cpp. */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_SERIAL_APP = 64,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* STORE_FORWARD_APP (Work in Progress)
|
|
|
|
Maintained by Jm Casler (MC Hamster) : jm@casler.org */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_STORE_FORWARD_APP = 65,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* Optional port for messages for the range test module. */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_RANGE_TEST_APP = 66,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* Provides a format to send and receive telemetry data from the Meshtastic network.
|
|
|
|
Maintained by Charles Crossan (crossan007) : crossan007@gmail.com */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_TELEMETRY_APP = 67,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* Experimental tools for estimating node position without a GPS
|
|
|
|
Maintained by Github user a-f-G-U-C (a Meshtastic contributor)
|
|
|
|
Project files at https://github.com/a-f-G-U-C/Meshtastic-ZPS */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_ZPS_APP = 68,
|
2023-05-23 01:19:13 +00:00
|
|
|
/* Used to let multiple instances of Linux native applications communicate
|
2023-01-18 13:42:53 +00:00
|
|
|
as if they did using their LoRa chip.
|
2023-05-23 01:19:13 +00:00
|
|
|
Maintained by GitHub user GUVWAF.
|
2023-01-18 13:42:53 +00:00
|
|
|
Project files at https://github.com/GUVWAF/Meshtasticator */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_SIMULATOR_APP = 69,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* Provides a traceroute functionality to show the route a packet towards
|
|
|
|
a certain destination would take on the mesh. */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_TRACEROUTE_APP = 70,
|
2023-04-17 20:42:42 +00:00
|
|
|
/* Aggregates edge info for the network by sending out a list of each node's neighbors */
|
|
|
|
meshtastic_PortNum_NEIGHBORINFO_APP = 71,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* Private applications should use portnums >= 256.
|
|
|
|
To simplify initial development and testing you can use "PRIVATE_APP"
|
|
|
|
in your code without needing to rebuild protobuf files (via [regen-protos.sh](https://github.com/meshtastic/firmware/blob/master/bin/regen-protos.sh)) */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_PRIVATE_APP = 256,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* ATAK Forwarder Module https://github.com/paulmandal/atak-forwarder */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_ATAK_FORWARDER = 257,
|
2023-01-18 13:42:53 +00:00
|
|
|
/* Currently we limit port nums to no higher than this value */
|
2023-01-21 17:22:19 +00:00
|
|
|
meshtastic_PortNum_MAX = 511
|
|
|
|
} meshtastic_PortNum;
|
2023-01-18 13:42:53 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Helper constants for enums */
|
2023-01-21 17:22:19 +00:00
|
|
|
#define _meshtastic_PortNum_MIN meshtastic_PortNum_UNKNOWN_APP
|
|
|
|
#define _meshtastic_PortNum_MAX meshtastic_PortNum_MAX
|
|
|
|
#define _meshtastic_PortNum_ARRAYSIZE ((meshtastic_PortNum)(meshtastic_PortNum_MAX+1))
|
2023-01-18 13:42:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|