Initial telemetry with time and variant tags (#4463)

This commit is contained in:
Ben Meadors
2024-08-14 16:24:28 -05:00
committed by GitHub
parent 837c4e9e7b
commit efc27f2051
3 changed files with 5 additions and 2 deletions

View File

@@ -418,6 +418,8 @@ meshtastic_MeshPacket *EnvironmentTelemetryModule::allocReply()
bool EnvironmentTelemetryModule::sendTelemetry(NodeNum dest, bool phoneOnly)
{
meshtastic_Telemetry m = meshtastic_Telemetry_init_zero;
m.which_variant = meshtastic_Telemetry_environment_metrics_tag;
m.time = getTime();
#ifdef T1000X_SENSOR_EN
if (t1000xSensor.getMetrics(&m)) {
#else