Update mesh.proto

pull/3/head
xyc0n 2020-12-04 14:15:03 -08:00 zatwierdzone przez GitHub
rodzic be48f1cbef
commit f87345f0e6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 16 dodań i 9 usunięć

Wyświetl plik

@ -91,17 +91,22 @@ A few nodenums are reserved and will never be requested:
*/ */
message User { message User {
string id = 1; // a globally unique ID string for this user. In the case of
// a globally unique ID string for this user. In the case of
// Signal that would mean +16504442323, for the default macaddr // Signal that would mean +16504442323, for the default macaddr
// derived id it would be !<6 hexidecimal bytes> // derived id it would be !<6 hexidecimal bytes>
string id = 1;
string long_name = 2; // A full name for this user, i.e. "Kevin Hester"
// A full name for this user, i.e. "Kevin Hester"
string short_name = 3; // A VERY short name, ideally two characters. Suitable string long_name = 2;
// A VERY short name, ideally two characters. Suitable
// for a tiny OLED screen // for a tiny OLED screen
string short_name = 3;
bytes macaddr = 4; // This is the addr of the radio. Not populated by the
// This is the addr of the radio. Not populated by the
// phone, but added by the esp32 when broadcasting // phone, but added by the esp32 when broadcasting
bytes macaddr = 4;
} }
/// A message used in our Dynamic Source Routing protocol (RFC 4728 based) /// A message used in our Dynamic Source Routing protocol (RFC 4728 based)
@ -295,9 +300,11 @@ message MeshPacket {
/// Shared constants between device and phone /// Shared constants between device and phone
enum Constants { enum Constants {
Unused = 0; // First enum must be zero, and we are just using this enum to
// pass int constants between two very different environments
// First enum must be zero, and we are just using this enum to
// pass int constants between two very different environments
Unused = 0;
/** From mesh.options /** From mesh.options
note: this payload length is ONLY the bytes that are sent inside of the radiohead packet note: this payload length is ONLY the bytes that are sent inside of the radiohead packet
Data.payload max_size:240 Data.payload max_size:240