mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-11-19 14:36:34 -05:00
Added ifstat parameters
This commit is contained in:
parent
ee82fa75a7
commit
f3ebec9cb1
3 changed files with 12 additions and 1 deletions
|
|
@ -262,6 +262,7 @@ class RNodeInterface(Interface):
|
|||
self.r_st_alock = None
|
||||
self.r_lt_alock = None
|
||||
self.r_random = None
|
||||
self.r_modulation = "LoRa"
|
||||
self.r_airtime_short = 0.0
|
||||
self.r_airtime_long = 0.0
|
||||
self.r_channel_load_short = 0.0
|
||||
|
|
|
|||
|
|
@ -278,7 +278,7 @@ class RNodeMultiInterface(Interface):
|
|||
self.interface_ready = False
|
||||
self.announce_rate_target = None
|
||||
self.reports_phy_stats = True
|
||||
|
||||
self.r_modulation = "LoRa"
|
||||
|
||||
self.validcfg = True
|
||||
if id_interval != None and id_callsign != None:
|
||||
|
|
|
|||
|
|
@ -1535,6 +1535,16 @@ class Reticulum:
|
|||
else:
|
||||
ifstats["tunnelstate"] = None
|
||||
|
||||
if hasattr(interface, "r_stat_rssi"): ifstats["rssi"] = interface.r_stat_rssi
|
||||
if hasattr(interface, "r_stat_snr"): ifstats["snr"] = interface.r_stat_snr
|
||||
if hasattr(interface, "r_stat_q"): ifstats["signal_quality"] = interface.r_stat_q
|
||||
if hasattr(interface, "r_frequency"): ifstats["frequency"] = interface.r_frequency
|
||||
if hasattr(interface, "r_bandwidth"): ifstats["bandwidth"] = interface.r_bandwidth
|
||||
if hasattr(interface, "r_txpower"): ifstats["txpower"] = interface.r_txpower
|
||||
if hasattr(interface, "r_sf"): ifstats["sf"] = interface.r_sf
|
||||
if hasattr(interface, "r_cr"): ifstats["cr"] = interface.r_cr
|
||||
if hasattr(interface, "r_channel"): ifstats["channel"] = interface.r_channel
|
||||
if hasattr(interface, "modulation"): ifstats["modulation"] = interface.modulation
|
||||
if hasattr(interface, "r_airtime_short"): ifstats["airtime_short"] = interface.r_airtime_short
|
||||
if hasattr(interface, "r_airtime_long"): ifstats["airtime_long"] = interface.r_airtime_long
|
||||
if hasattr(interface, "r_channel_load_short"): ifstats["channel_load_short"] = interface.r_channel_load_short
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue