Hello,

I believe that "the current network" is the one which is Active.

Replace /org/freedesktop/NetworkManager/Devices/eth1 with the object path of 
the ActiveAccessPoint. Then get the Ssid property of that ActiveAccessPoint.

Regards,
Jos Collin
________________________________________
From: [email protected] 
[[email protected]] On Behalf Of Jonathan Haug 
[[email protected]]
Sent: Tuesday, March 22, 2011 5:38 PM
To: [email protected]
Subject: How to get the ESSID of the active wifi network?

Hi there,

I'm looking for a bash command to get the ESSID of the current network
via d-bus.

I tried

dbus-send --system --dest=org.freedesktop.NetworkManager
--print-reply /org/freedesktop/NetworkManager/Devices/eth1
org.freedesktop.NetworkManager.getActiveNetwork

but this one seems a bit outdate. Im using Network Manager 0.8.1.

Any help for me?

Thanks in advance

Jonathan

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

::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and
attachments please check them for viruses and defect.

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

Reply via email to