Remove ROUTER_APP and add router_heartbeat to position

pull/121/head
Jm Casler 2022-02-28 19:34:20 -08:00
rodzic d185455837
commit e94b250143
2 zmienionych plików z 10 dodań i 15 usunięć

Wyświetl plik

@ -31,13 +31,6 @@ option java_outer_classname = "MeshProtos";
* a gps position
*/
message Position {
/*
* The old (pre 1.2) position encoding sent lat/lon as sint32s in field 7,8.
* Do not use to prevent confusing old apps
*/
reserved 7, 8;
/*
* The new preferred location encoding, divide by 1e-7 to get degrees
* in floating point
@ -70,6 +63,15 @@ message Position {
*/
int32 battery_level = 4;
/*
* This is sent by node only if it a router and if hop_limit is set to 0
* and is not being sent as a reliable message.
*
* Note to Ben & Garth : When position is refactored, please move this to the same message
* "time" is moving to.
*/
bool router_heartbeat = 5;
/*
* This is usually not sent over the mesh (to save space), but it is sent
* from the phone so that the local device can set its RTC If it is sent over

Wyświetl plik

@ -92,18 +92,12 @@ enum PortNum {
*/
IP_TUNNEL_APP = 33;
/*
* Used for the router module
*/
ROUTER_APP = 34;
/*
* 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 SERIALMODULE_ENABLED = 1 in SerialPlugh.cpp.
* Maintained by Jm Casler (MC Hamster) : jm@casler.org
*/
SERIAL_APP = 64;
@ -114,8 +108,7 @@ enum PortNum {
STORE_FORWARD_APP = 65;
/*
* STORE_FORWARD_APP (Work in Progress)
* Maintained by Jm Casler (MC Hamster) : jm@casler.org
* Optional port for messages for the range test module.
*/
RANGE_TEST_APP = 66;