On Wed, 2015-07-01 at 16:45 +0200, Pieter Cardoen wrote:
> I'am trying to get WiFi logging via dbus but had the following issue:
> I want to monitor the active connection; I use the dbus-interface with object 
> path "/org/freedesktop/NetworkManager/ActiveConnection/x" (x is 1 in my 
> case). This should allow me to read info of the active connection. If I 
> request the SpecificObject property, I get a proper return value: 
> "/org/freedesktop/NetworkManager/AccessPoint/291" but this access point is 
> not in the list of Access Points. If I verify the access point to which the 
> wlan card is associated, it is another one! It seems that this variable 
> doesn't contain the correct info.
> Has anyone experienced this issue?
> NM version: 0.9.10.0                                    

I believe the SpecificObject actually just tracks the AP object that the
connection was started with, and doesn't follow when that changes (since
it could change to nothing when the connection periodically drops, for
example).

But instead of monitoring that, you'd want to watch the WiFi device
object itself, and look at the
org.freedesktop.NetworkManager.Device.Wireless interface's
"ActiveAccessPoint" property.

I just added an example to NM git to retrieve the active AP and some of
it's details, perhaps it'll help?

http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/examples/python/dbus/wifi-active-ap.py

Dan

_______________________________________________
networkmanager-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to