issue 879 - define source types

1.2-legacy
a-f-G-U-C 2021-10-09 13:48:30 +00:00 zatwierdzone przez GitHub
rodzic dc436a3cc9
commit ee9c72b8c7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -15,6 +15,14 @@ typedef uint32_t PacketId; // A packet sequence number
#define ERRNO_UNKNOWN 32 // pick something that doesn't conflict with RH_ROUTER_ERROR_UNABLE_TO_DELIVER
#define ERRNO_DISABLED 34 // the itnerface is disabled
/*
* Source of a received message
*/
enum RxSource {
RX_SRC_LOCAL, // message was generated locally
RX_SRC_RADIO // message was received from radio mesh
};
/**
* the max number of hops a message can pass through, used as the default max for hop_limit in MeshPacket.
*