OpenWrt Forum Archive

Topic: Finding wireless connection status through ubus calls

The content of this topic has been archived on 23 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

My wireless is in client mode and I've connected it to an access point trough webpage. Are there any ubus calls to check status of the connection? Are there any openwrt specific wireless daemons to configure and manage wireless connections through ubus calls?

If not, any other way to check wireless connection status in my program? (Check connected station, signal strength etc)

Try this command:

 ubus call network.wireless status 

Is that what you want?

(Last edited by marcosbontempo on 28 Jul 2015, 14:33)

@marco Yeah. Thank you very much.  I also need more details like signal strength etc. Any idea?

Try installing the rpcd-mod-info package. Call with this command:

 ubus call iwinfo txpowerlist '{ "device": "wlan0" }' 

(Last edited by marcosbontempo on 29 Jul 2015, 18:06)

@marco I can't find this package. I've update all the feeds.

./scripts/feeds update -a
./scripts/feeds search rpcd-mod-info. I'm using cc-15.05

Thanks

It is "rpcd-mod-iwinfo"

The discussion might have continued from here.