2022-02-27 04:52:22 +00:00
|
|
|
/* Automatically generated nanopb header */
|
|
|
|
/* Generated by nanopb-0.4.4 */
|
|
|
|
|
|
|
|
#ifndef PB_TELEMETRY_PB_H_INCLUDED
|
|
|
|
#define PB_TELEMETRY_PB_H_INCLUDED
|
|
|
|
#include <pb.h>
|
|
|
|
|
|
|
|
#if PB_PROTO_HEADER_VERSION != 40
|
|
|
|
#error Regenerate this file with the current version of nanopb generator.
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Struct definitions */
|
|
|
|
typedef struct _Telemetry {
|
2022-03-20 14:55:38 +00:00
|
|
|
uint32_t time;
|
|
|
|
int32_t battery_level;
|
|
|
|
float channel_utilization;
|
|
|
|
float air_util_tx;
|
|
|
|
bool router_heartbeat;
|
2022-02-27 04:52:22 +00:00
|
|
|
float temperature;
|
|
|
|
float relative_humidity;
|
|
|
|
float barometric_pressure;
|
|
|
|
float gas_resistance;
|
|
|
|
float voltage;
|
|
|
|
float current;
|
|
|
|
} Telemetry;
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Initializer values for message structs */
|
2022-03-20 14:55:38 +00:00
|
|
|
#define Telemetry_init_default {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
|
|
|
|
#define Telemetry_init_zero {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
|
2022-02-27 04:52:22 +00:00
|
|
|
|
|
|
|
/* Field tags (for use in manual encoding/decoding) */
|
2022-03-20 14:55:38 +00:00
|
|
|
#define Telemetry_time_tag 1
|
|
|
|
#define Telemetry_battery_level_tag 2
|
|
|
|
#define Telemetry_channel_utilization_tag 3
|
|
|
|
#define Telemetry_air_util_tx_tag 4
|
|
|
|
#define Telemetry_router_heartbeat_tag 5
|
|
|
|
#define Telemetry_temperature_tag 6
|
|
|
|
#define Telemetry_relative_humidity_tag 7
|
|
|
|
#define Telemetry_barometric_pressure_tag 8
|
|
|
|
#define Telemetry_gas_resistance_tag 9
|
|
|
|
#define Telemetry_voltage_tag 10
|
|
|
|
#define Telemetry_current_tag 11
|
2022-02-27 04:52:22 +00:00
|
|
|
|
|
|
|
/* Struct field encoding specification for nanopb */
|
|
|
|
#define Telemetry_FIELDLIST(X, a) \
|
2022-03-20 14:55:38 +00:00
|
|
|
X(a, STATIC, SINGULAR, FIXED32, time, 1) \
|
|
|
|
X(a, STATIC, SINGULAR, INT32, battery_level, 2) \
|
|
|
|
X(a, STATIC, SINGULAR, FLOAT, channel_utilization, 3) \
|
|
|
|
X(a, STATIC, SINGULAR, FLOAT, air_util_tx, 4) \
|
|
|
|
X(a, STATIC, SINGULAR, BOOL, router_heartbeat, 5) \
|
|
|
|
X(a, STATIC, SINGULAR, FLOAT, temperature, 6) \
|
|
|
|
X(a, STATIC, SINGULAR, FLOAT, relative_humidity, 7) \
|
|
|
|
X(a, STATIC, SINGULAR, FLOAT, barometric_pressure, 8) \
|
|
|
|
X(a, STATIC, SINGULAR, FLOAT, gas_resistance, 9) \
|
|
|
|
X(a, STATIC, SINGULAR, FLOAT, voltage, 10) \
|
|
|
|
X(a, STATIC, SINGULAR, FLOAT, current, 11)
|
2022-02-27 04:52:22 +00:00
|
|
|
#define Telemetry_CALLBACK NULL
|
|
|
|
#define Telemetry_DEFAULT NULL
|
|
|
|
|
|
|
|
extern const pb_msgdesc_t Telemetry_msg;
|
|
|
|
|
|
|
|
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
|
|
|
|
#define Telemetry_fields &Telemetry_msg
|
|
|
|
|
|
|
|
/* Maximum encoded size of messages (where known) */
|
2022-03-20 14:55:38 +00:00
|
|
|
#define Telemetry_size 58
|
2022-02-27 04:52:22 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|