kopia lustrzana https://github.com/meshtastic/protobufs
69 wiersze
1.4 KiB
Protocol Buffer
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)
|
|
*/
|
|
int32 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;
|
|
|
|
/*
|
|
* TODO: REPLACE
|
|
*/
|
|
float temperature = 6;
|
|
|
|
/*
|
|
* TODO: REPLACE
|
|
*/
|
|
float relative_humidity = 7;
|
|
|
|
/*
|
|
* TODO: REPLACE
|
|
*/
|
|
float barometric_pressure = 8;
|
|
|
|
/*
|
|
* TODO: REPLACE
|
|
*/
|
|
float gas_resistance = 9;
|
|
|
|
/*
|
|
* TODO: REPLACE
|
|
*/
|
|
float voltage = 10;
|
|
|
|
/*
|
|
* TODO: REPLACE
|
|
*/
|
|
float current = 11;
|
|
}
|