Re: how to get scanned network strength over dbus

Denis Kenzior <[email protected]> Sat, 12 Apr 2025 15:23:18 -0500
Newsgroups dev.linux.lists.iwd
Message-ID <[email protected]>
Hi Keith,

On 4/12/25 1:48 PM, KeithG wrote:
> I am trying to get a listing of ssid Dbm values for my UI. I an trying
> to write a python script to do that and ran across the ones in the iwd
> directrory
> https://git.kernel.org/pub/scm/network/wireless/iwd.git/tree/test
> I copied get-diagnostics and ran it and it works for the conneced

diagnostics is for the connected BSS (not network per se, there may be multiple 
BSSes in a network).

> network. How do I get the dBm values for all scanned networks?
> # python3 get-diagnostics.py /net/connman/iwd/0/3
> ConnectedBss : a6:2e:48:fd:9e:73
> RSSI : -57 dBm
> TxBitrate : 292500 Kbps
> RxBitrate : 292500 Kbps
> 
> but I want this for all the scanned networks... Is this possible
> across the dBus?

If you don't need to know the signal strength of individual BSSes, then
                 array(on) GetOrderedNetworks()

is what you want.  See doc/station-api.txt


Regards,
-Denis