Move battery leve

This commit is contained in:
Garth Vander Houwen 2022-03-04 04:46:12 -08:00 committed by Ben Meadors
parent 3e70448a0f
commit 9495168928
2 changed files with 31 additions and 13 deletions

View file

@ -58,11 +58,6 @@ message Position {
*/
int32 altitude = 3;
/*
* 1-100 (0 means not provided)
*/
int32 battery_level = 4;
/*
* 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

View file

@ -6,33 +6,56 @@ option go_package = "github.com/meshtastic/gomeshproto";
*/
message Telemetry {
/*
* TODO: REPLACE
/*
* 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
* the mesh (because there are devices on the mesh without GPS), it will only
* be sent by devices which has a hardware GPS clock.
* seconds since 1970
*/
float temperature = 1;
fixed32 time = 1;
/*
* 1-100 (0 means not provided)
*/
int32 battery_level = 2;
/*
* 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 = 3;
/*
* TODO: REPLACE
*/
float relative_humidity = 2;
float temperature = 4;
/*
* TODO: REPLACE
*/
float barometric_pressure = 3;
float relative_humidity = 5;
/*
* TODO: REPLACE
*/
float gas_resistance = 4;
float barometric_pressure = 6;
/*
* TODO: REPLACE
*/
float voltage = 5;
float gas_resistance = 7;
/*
* TODO: REPLACE
*/
float current = 6;
float voltage = 8;
/*
* TODO: REPLACE
*/
float current = 9;
}