File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -589,6 +589,9 @@ def sendTelemetry(
589589 air_util_tx = metrics .get ("airUtilTx" )
590590 if air_util_tx is not None :
591591 r .device_metrics .air_util_tx = air_util_tx
592+ uptime_seconds = metrics .get ("uptimeSeconds" )
593+ if uptime_seconds is not None :
594+ r .device_metrics .uptime_seconds = uptime_seconds
592595
593596 if wantResponse :
594597 onResponse = self .onResponseTelemetry
@@ -626,6 +629,8 @@ def onResponseTelemetry(self, p: dict):
626629 print (
627630 f"Transmit air utilization: { telemetry .device_metrics .air_util_tx :.2f} %"
628631 )
632+ if telemetry .device_metrics .uptime_seconds is not None :
633+ print (f"Uptime: { telemetry .device_metrics .uptime_seconds } s" )
629634
630635 elif p ["decoded" ]["portnum" ] == "ROUTING_APP" :
631636 if p ["decoded" ]["routing" ]["errorReason" ] == "NO_RESPONSE" :
You can’t perform that action at this time.
0 commit comments