change IP port mapping

pull/3/head
Kevin Hester 2020-11-28 13:24:21 +08:00
rodzic 95ef921604
commit 7c1016b8a0
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -10,7 +10,8 @@ syntax = "proto3";
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-512 Use one of these portnums for your private applications that you don't want to register publically
256-511 Use one of these portnums for your private applications that you don't want to register publically
1024-66559 Are reserved for use by IP tunneling (see FIXME for more information)
All other values are reserved.
@ -43,9 +44,10 @@ enum PortNum {
GPIO_APP = 2;
GPS_POSITION_APP = 3;
MESH_USERINFO_APP = 4;
IP_TUNNEL_APP = 5;
/// 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 bin/regin_protos.sh)
PRIVATE_APP = 256;
IP_TUNNEL_APP = 1024;
}