Do not send telemetry in igate mode and send battery level every minute

platformio
sh123 2022-12-19 10:58:31 +02:00
rodzic 4508a02477
commit 586535ab32
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -125,7 +125,7 @@ private:
const int CfgConnRetryMs = 500; // connection retry delay, e.g. wifi
const int CfgPollDelayMs = 20; // main loop delay
const int CfgConnRetryMaxTimes = 10; // number of connection retries
const int CfgTelemetryPeriodMs = 30000; // how often to send telemetry event
const int CfgTelemetryPeriodMs = 60000; // how often to send telemetry event
static const int CfgMaxPacketSize = 256; // maximum packet size
static const int CfgRadioQueueSize = 1024; // radio queue size

Wyświetl plik

@ -92,7 +92,7 @@ void Service::setup(const Config &conf)
}
// telemetry event
if (config_.TlmEnable) {
if (config_.TlmEnable && config_.IsClientMode) {
LOG_INFO("Telemetry event is enabled");
telemetryTimer_.every(CfgTelemetryPeriodMs, sendModemTelemetryTimer, this);
}