-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
When attempting to call queryInterface(someInterface, "current_connection") I receive the error shown below.
Here is the specific code I am using:
ifaces = pywiwi.getWirelessInterfaces()
for iface in ifaces:
if iface.guid_string == targetGUID:
routerName = pywiwi.queryInterface(
iface,"current_connection"
)[0].wlanAssociationAttributes.dot11Ssid.SSID
And the resulting error:
Traceback (most recent call last):
File "auto-start_vpn.py", line 17, in <module>
iface,"current_connection"
File "C:\Panda3D-1.9.1\python\lib\pywiwi\WindowsWifi.py", line 376, in queryInterface
"dot11PhyType": DOT11_PHY_TYPE_DICT[aa.dot11PhyType],
KeyError: 8L
I am able to work around this by commenting out the affected line (376 in WindowsWifi.py) but thought you might want to know.
Great module!!!
Thanks & Regards,
Mike
EDIT: It may be worth noting that I also included the following line in the module init file, such that I can access WindowsWifi functions directly via pywiwi import:
from WindowsWifi import *
I would highly recommend implementing this.
Metadata
Metadata
Assignees
Labels
No labels