Im trying to get stats out of LORA... Was trying this:
lora.stats(rx_timestamp, rssi, snr, sftx, sfrx, tx_trials, tx_power, tx_time_on_air, tx_counter, tx_frequency)
It might be the wrong way to do it...???
seb last edited by
You shouldn't be passing any parameters to
lora.stat(), instead this function returns a named tuple of stats from the last packet received that you can access like so:
stats = lora.stats() rssi = stats['rssi'] snr = stats['snr'] etc
lora.stats()without arguments, and you will get an object with the various parameters in return.
Note that the RX values (
sfrx) are only valid if you actually received a downlink. And I believe
tx_frequencycurrently always returns 0.