Temetry can respond to want-response for LocalStats variant (#5414)

This commit is contained in:
Ben Meadors
2024-11-21 15:11:19 -06:00
committed by GitHub
parent f5058a9cbb
commit d5bb32ff93
2 changed files with 13 additions and 5 deletions

View File

@@ -42,6 +42,8 @@ class DeviceTelemetryModule : private concurrency::OSThread, public ProtobufModu
private:
meshtastic_Telemetry getDeviceTelemetry();
meshtastic_Telemetry getLocalStatsTelemetry();
void sendLocalStatsToPhone();
uint32_t sendToPhoneIntervalMs = SECONDS_IN_MINUTE * 1000; // Send to phone every minute
uint32_t sendStatsToPhoneIntervalMs = 15 * SECONDS_IN_MINUTE * 1000; // Send stats to phone every 15 minutes