Send device telemetry to phone every minute (#1784)

This commit is contained in:
Ben Meadors
2022-10-11 10:21:30 -05:00
committed by GitHub
parent b2c3b405b1
commit 434db4347b
5 changed files with 27 additions and 17 deletions

View File

@@ -24,9 +24,10 @@ class DeviceTelemetryModule : private concurrency::OSThread, public ProtobufModu
/**
* Send our Telemetry into the mesh
*/
bool sendOurTelemetry(NodeNum dest = NODENUM_BROADCAST, bool wantReplies = false);
bool sendTelemetry(NodeNum dest = NODENUM_BROADCAST, bool phoneOnly = false);
private:
bool firstTime = 1;
uint32_t sendToPhoneIntervalMs = SECONDS_IN_MINUTE * 1000; // Send to phone every minute
uint32_t lastSentToMesh = 0;
const MeshPacket *lastMeasurementPacket;
};