kopia lustrzana https://github.com/sh123/esp32_loraprs
Do not send telemetry in igate mode and send battery level every minute
rodzic
4508a02477
commit
586535ab32
|
@ -125,7 +125,7 @@ private:
|
||||||
const int CfgConnRetryMs = 500; // connection retry delay, e.g. wifi
|
const int CfgConnRetryMs = 500; // connection retry delay, e.g. wifi
|
||||||
const int CfgPollDelayMs = 20; // main loop delay
|
const int CfgPollDelayMs = 20; // main loop delay
|
||||||
const int CfgConnRetryMaxTimes = 10; // number of connection retries
|
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 CfgMaxPacketSize = 256; // maximum packet size
|
||||||
static const int CfgRadioQueueSize = 1024; // radio queue size
|
static const int CfgRadioQueueSize = 1024; // radio queue size
|
||||||
|
|
|
@ -92,7 +92,7 @@ void Service::setup(const Config &conf)
|
||||||
}
|
}
|
||||||
|
|
||||||
// telemetry event
|
// telemetry event
|
||||||
if (config_.TlmEnable) {
|
if (config_.TlmEnable && config_.IsClientMode) {
|
||||||
LOG_INFO("Telemetry event is enabled");
|
LOG_INFO("Telemetry event is enabled");
|
||||||
telemetryTimer_.every(CfgTelemetryPeriodMs, sendModemTelemetryTimer, this);
|
telemetryTimer_.every(CfgTelemetryPeriodMs, sendModemTelemetryTimer, this);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue