meshtastic-protobuf/telemetry.proto

69 wiersze
1.4 KiB
Protocol Buffer

syntax = "proto3";
option go_package = "github.com/meshtastic/gomeshproto";
/*
* TODO: REPLACE
*/
message Telemetry {
/*
* 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 (IE Mobile Phone).
* seconds since 1970
*/
fixed32 time = 1;
/*
* 1-100 (0 means powered)
*/
uint32 battery_level = 2;
/*
* Utilization for the current channel, including well formed TX, RX and malformed RX (aka noise).
*/
float channel_utilization = 3;
/*
* Percent of airtime for transmission used within the last hour.
*/
float air_util_tx = 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.
*/
bool router_heartbeat = 5;
/*
* Temperature measured
*/
float temperature = 6;
/*
* Relative humidity percent measured
*/
float relative_humidity = 7;
/*
* Barometric pressure in hPA measured
*/
float barometric_pressure = 8;
/*
* Gas resistance in mOhm measured
*/
float gas_resistance = 9;
/*
* Voltage measured
*/
float voltage = 10;
/*
* Current measured
*/
float current = 11;
}