auto-t: Add async API call for connect_hidden_network

This commit is contained in:
Tim Kourt 2020-06-09 18:22:20 -07:00 committed by Denis Kenzior
parent 61ee99f632
commit 7ef7894218
1 changed files with 15 additions and 0 deletions

View File

@ -482,6 +482,21 @@ class Device(IWDDBusAbstract):
error_handler=self._failure)
self._wait_for_async_op()
def connect_hidden_network_async(self, name, reply_handler, error_handler):
'''Connect to a hidden network
Possible exception: BusyEx
FailedEx
InvalidArgumentsEx
NotConfiguredEx
NotConnectedEx
NotFoundEx
ServiceSetOverlapEx
'''
self._iface.ConnectHiddenNetwork(name,
dbus_interface=IWD_STATION_INTERFACE,
reply_handler=reply_handler,
error_handler=error_handler)
def start_adhoc(self, ssid, psk=None):
self._prop_proxy.Set(IWD_DEVICE_INTERFACE, 'Mode', 'ad-hoc')
self._adhoc_iface = dbus.Interface(self._bus.get_object(IWD_SERVICE,