collect uptime telemetry added in meshtastic v2.3.5

This commit is contained in:
liamcottle
2024-04-16 16:32:26 +12:00
parent 3a3a479e39
commit fbaafccec8
4 changed files with 20 additions and 0 deletions

View File

@ -520,6 +520,7 @@ client.on("message", async (topic, message) => {
data.voltage = telemetry.deviceMetrics.voltage !== 0 ? telemetry.deviceMetrics.voltage : null;
data.channel_utilization = telemetry.deviceMetrics.channelUtilization !== 0 ? telemetry.deviceMetrics.channelUtilization : null;
data.air_util_tx = telemetry.deviceMetrics.airUtilTx !== 0 ? telemetry.deviceMetrics.airUtilTx : null;
data.uptime_seconds = telemetry.deviceMetrics.uptimeSeconds !== 0 ? telemetry.deviceMetrics.uptimeSeconds : null;
// create device metric
try {